/* ============================================
   Premium Projects Section - Complete Redesign
   ============================================ */

.projects-premium-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0f 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.projects-premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #667eea 75%, #764ba2 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Projects Grid */
.projects-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 80px;
}

/* Premium Project Card */
.project-premium-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-premium-card:hover {
    transform: translateY(-12px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(102, 126, 234, 0.2);
}

.project-premium-card:hover::before {
    opacity: 1;
}

/* Project Labels */
.project-labels {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.label-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.label-badge.enterprise {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    color: #667eea;
}

.label-badge.production {
    background: rgba(75, 192, 192, 0.2);
    border-color: rgba(75, 192, 192, 0.5);
    color: #4bc0c0;
}

.label-badge.hands-on {
    background: rgba(255, 159, 64, 0.2);
    border-color: rgba(255, 159, 64, 0.5);
    color: #ff9f40;
}

.label-badge.capstone {
    background: rgba(153, 102, 255, 0.2);
    border-color: rgba(153, 102, 255, 0.5);
    color: #9966ff;
}

.label-badge.interview {
    background: rgba(255, 99, 132, 0.2);
    border-color: rgba(255, 99, 132, 0.5);
    color: #ff6384;
}

/* Project Preview */
.project-preview {
    height: 280px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.preview-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* K8s Troubleshooter Preview */
.k8s-troubleshooter {
    flex-direction: column;
    gap: 20px;
}

.k8s-cluster {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cluster-node {
    width: 50px;
    height: 50px;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 8px;
    animation: nodePulse 2s ease-in-out infinite;
}

.cluster-node:nth-child(2) { animation-delay: 0.3s; }
.cluster-node:nth-child(3) { animation-delay: 0.6s; }

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.ai-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
}

.ai-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
}

.ai-icon i {
    color: #667eea;
    font-size: 16px;
}

.ai-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.terminal-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    width: 100%;
}

.terminal-line {
    color: rgba(255, 255, 255, 0.6);
}

.terminal-line.success {
    color: #4bc0c0;
}

/* AWS Architecture Preview */
.aws-architecture {
    position: relative;
}

.aws-diagram {
    position: relative;
    width: 200px;
    height: 150px;
}

.aws-vpc, .aws-eks, .aws-rds, .aws-lb {
    position: absolute;
    padding: 12px 20px;
    background: rgba(255, 159, 64, 0.2);
    border: 2px solid rgba(255, 159, 64, 0.5);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ff9f40;
}

.aws-vpc { top: 0; left: 50%; transform: translateX(-50%); }
.aws-eks { top: 60px; left: 0; }
.aws-rds { top: 60px; right: 0; }
.aws-lb { bottom: 0; left: 50%; transform: translateX(-50%); }

/* Security Scan Card - Targeted Fix */
.project-premium-card:has(.security-scan) .scan-report {
    margin-top: 80px;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-lines line {
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { stroke-opacity: 0.3; }
    50% { stroke-opacity: 1; }
}

/* CI/CD Pipeline Preview */
.cicd-pipeline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(75, 192, 192, 0.1);
    border: 2px solid rgba(75, 192, 192, 0.3);
    border-radius: 12px;
    transition: all 0.3s;
}

.project-premium-card:hover .pipeline-stage {
    border-color: rgba(75, 192, 192, 0.6);
    background: rgba(75, 192, 192, 0.2);
}

.pipeline-stage i {
    font-size: 24px;
    color: #4bc0c0;
}

.pipeline-stage span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.pipeline-arrow {
    color: rgba(75, 192, 192, 0.5);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Observability Dashboard Preview */
.observability-dashboard {
    width: 100%;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 99, 132, 0.2);
    border: 1px solid rgba(255, 99, 132, 0.3);
    border-radius: 8px 8px 0 0;
    margin-bottom: 16px;
}

.dashboard-header i {
    color: #ff6384;
    font-size: 20px;
}

.dashboard-header span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.875rem;
}

.dashboard-metrics {
    display: flex;
    gap: 16px;
}

.metric-graph {
    flex: 1;
    height: 80px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 99, 132, 0.5) 0%, rgba(255, 99, 132, 0.1) 100%);
    clip-path: polygon(0 100%, 0 60%, 20% 40%, 40% 50%, 60% 30%, 80% 45%, 100% 20%, 100% 100%);
    animation: graphPulse 2s ease-in-out infinite;
}

@keyframes graphPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.metric-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-box {
    padding: 12px 16px;
    background: rgba(255, 99, 132, 0.1);
    border: 1px solid rgba(255, 99, 132, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Security Scan Preview */
.security-scan {
    width: 100%;
}

.scan-report {
    width: 100%;
}

.scan-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(75, 192, 192, 0.2);
    border: 1px solid rgba(75, 192, 192, 0.3);
    border-radius: 8px 8px 0 0;
    margin-bottom: 16px;
}

.scan-header i {
    color: #4bc0c0;
    font-size: 20px;
}

.scan-header span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.875rem;
}

.scan-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scan-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
}

.scan-item.success {
    border-left: 3px solid #4bc0c0;
    color: rgba(255, 255, 255, 0.8);
}

.scan-item i {
    color: #4bc0c0;
}

/* Service Mesh Preview */
.service-mesh {
    width: 100%;
}

.mesh-topology {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.mesh-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(153, 102, 255, 0.1);
    border: 2px solid rgba(153, 102, 255, 0.3);
    border-radius: 12px;
}

.mesh-node i {
    font-size: 24px;
    color: #9966ff;
}

.mesh-node span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.mesh-connection {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(153, 102, 255, 0.5) 0%, rgba(153, 102, 255, 0.8) 50%, rgba(153, 102, 255, 0.5) 100%);
    animation: connectionFlow 2s linear infinite;
}

@keyframes connectionFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.mtls-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 4px 12px;
    background: rgba(153, 102, 255, 0.3);
    border: 1px solid rgba(153, 102, 255, 0.5);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9966ff;
}

/* Project Info */
.project-info {
    padding: 32px;
}

.project-header {
    margin-bottom: 16px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.meta-item i {
    color: #667eea;
    font-size: 0.875rem;
}

.project-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

/* Project Details */
.project-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Project Stats */
.project-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.project-premium-card:hover .stat {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.stat i {
    color: #667eea;
    font-size: 0.875rem;
}

/* Tech Logos */
.project-tech-logos {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tech-logos i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.project-tech-logos i:hover {
    color: #667eea;
    transform: scale(1.2);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
}

.project-premium-card:hover .project-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-project {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-project.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-project.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-project.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-project.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Projects CTA */
.projects-cta {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-cta.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.btn-cta.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.btn-cta.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-premium-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-premium-section {
        padding: 80px 0;
    }
    
    .project-preview {
        height: 220px;
    }
    
    .preview-content {
        padding: 20px;
    }
    
    .project-info {
        padding: 24px;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-details {
        grid-template-columns: 1fr;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-tech-logos {
        gap: 12px;
    }
    
    .project-tech-logos i {
        font-size: 24px;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .project-labels {
        top: 12px;
        left: 12px;
    }
    
    .label-badge {
        font-size: 0.6875rem;
        padding: 4px 10px;
    }
    
    .project-preview {
        height: 180px;
    }
    
    .cicd-pipeline {
        flex-direction: column;
        gap: 8px;
    }
    
    .pipeline-arrow {
        transform: rotate(90deg);
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
}