/* Portfolio Page Styles */

/* Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, rgba(16, 202, 183, 0.9) 0%, rgba(14, 165, 233, 0.9) 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(16, 202, 183, 0.1) 0%, 
        rgba(14, 165, 233, 0.1) 25%, 
        rgba(16, 202, 183, 0.1) 50%, 
        rgba(14, 165, 233, 0.1) 75%, 
        rgba(16, 202, 183, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.portfolio-hero .container {
    position: relative;
    z-index: 2;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.portfolio-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.portfolio-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
}

.portfolio-stats .stat:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.portfolio-stats .stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.portfolio-stats .stat p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Portfolio Items */
.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 202, 183, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 202, 183, 0.15);
    border-color: rgba(16, 202, 183, 0.3);
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
}

.portfolio-header {
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-header:hover {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
}

.portfolio-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Labels */
.portfolio-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.label {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.label.performance {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.label.security {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.label.analytics {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.label.optimization {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.label.global {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-color: rgba(14, 165, 233, 0.3);
}

.label.enterprise {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.label.compliance {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.label.realtime {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.label.ml {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.label.ddos {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.3);
}

.label.mitigation {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.3);
}

.label.cloud {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-color: rgba(14, 165, 233, 0.3);
}

.label.migration {
    background-color: rgba(132, 204, 22, 0.1);
    color: #84cc16;
    border-color: rgba(132, 204, 22, 0.3);
}

.label.api {
    background-color: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.3);
}

.label.scaling {
    background-color: rgba(101, 163, 13, 0.1);
    color: #65a30d;
    border-color: rgba(101, 163, 13, 0.3);
}

.label.monitoring {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.label.network {
    background-color: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border-color: rgba(20, 184, 166, 0.3);
}

.label.alerting {
    background-color: rgba(251, 146, 60, 0.1);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.3);
}

.label.blockchain {
    background-color: rgba(234, 88, 12, 0.1);
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.3);
}

.label.audit {
    background-color: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border-color: rgba(100, 116, 139, 0.3);
}


.label.loadbalancer {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.label.cdn {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.label.waf {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.label.protection {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.3);
}

.label.database {
    background-color: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.3);
}

.label.orchestration {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.label.zerotrust {
    background-color: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.3);
}

/* Metrics */
.portfolio-metrics {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 202, 183, 0.05) 0%, rgba(16, 202, 183, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(16, 202, 183, 0.2);
    min-width: 120px;
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(16, 202, 183);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Expand Button */
.expand-btn {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: linear-gradient(135deg, rgba(16, 202, 183, 0.1) 0%, rgba(16, 202, 183, 0.2) 100%);
    border: 2px solid rgba(16, 202, 183, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgb(16, 202, 183);
    font-size: 1.1rem;
}

.expand-btn:hover {
    background: linear-gradient(135deg, rgb(16, 202, 183) 0%, rgba(14, 165, 233, 1) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(16, 202, 183, 0.3);
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.portfolio-item.expanded .expand-btn i {
    transform: rotate(180deg);
}

/* Portfolio Details */
.portfolio-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-top: 1px solid rgba(16, 202, 183, 0.1);
}

.portfolio-item.expanded .portfolio-details {
    max-height: 1000px;
}

.detail-content {
    padding: 2.5rem;
}

.detail-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.detail-content h4:first-child {
    margin-top: 0;
}

.detail-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-stack {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(16, 202, 183, 0.2);
}

.tech-stack h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    background-color: rgba(16, 202, 183, 0.1);
    color: rgb(16, 202, 183);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(16, 202, 183, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-stats {
        gap: 2rem;
    }
    
    .portfolio-stats .stat {
        min-width: 120px;
        padding: 1.5rem;
    }
    
    .portfolio-header {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-header h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-metrics {
        gap: 1rem;
    }
    
    .metric {
        min-width: 100px;
    }
    
    .expand-btn {
        top: 2rem;
        right: 1.5rem;
    }
    
    .detail-content {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-labels {
        gap: 0.5rem;
    }
    
    .label {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-hero {
        padding: 120px 0 80px;
    }
    
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    
    .portfolio-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .portfolio-stats .stat {
        max-width: 200px;
    }
    
    .portfolio-header h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .metric {
        min-width: auto;
    }
    
    .tech-tags {
        gap: 0.4rem;
    }
    
    .tech-tags span {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation for smooth transitions */
.portfolio-item {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for portfolio items */
.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }
.portfolio-item:nth-child(9) { animation-delay: 0.9s; }
.portfolio-item:nth-child(10) { animation-delay: 1.0s; }
.portfolio-item:nth-child(11) { animation-delay: 1.1s; }
.portfolio-item:nth-child(12) { animation-delay: 1.2s; }
.portfolio-item:nth-child(13) { animation-delay: 1.3s; }
