/* ces-engineering-disciplines.css - Core Engineering Solutions */
/* Prefix: ces (Core Engineering Solutions) */

/* ===== HERO: INTEGRATED ENGINEERING NEXUS ===== */
.ces-hero-nexus {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #005293 0%, #003865 100%);
    color: white;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.ces-hero-nexus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 80L80 0M-10 10L10-10M70 90L90 70' stroke='rgba(255,255,255,0.06)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.1;
    animation: cesKineticShift 30s ease infinite alternate;
}

.ces-hero-nexus h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    color: white;
    text-transform: camelcase;
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
}

.ces-hero-nexus h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #DC052D;
}

.ces-hero-nexus p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== SYNERGY SECTION ===== */
.ces-synergy {
    padding: 80px 0;
    background: white;
}

.ces-synergy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ces-synergy-content h2 {
    color: #005293;
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.ces-synergy-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #005293, #DC052D);
}

.ces-synergy-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.ces-synergy-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 82, 147, 0.2);
    transition: all 0.5s ease;
}

.ces-synergy-visual:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 82, 147, 0.3);
}

.ces-synergy-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.ces-synergy-visual:hover img {
    transform: scale(1.05);
}

/* ===== COMPETENCE MATRIX ===== */
.ces-competence-matrix {
    padding: 80px 0;
    background: #f8f9fa;
}

.ces-matrix-header {
    text-align: center;
    margin-bottom: 60px;
}

.ces-matrix-header h2 {
    color: #005293;
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.ces-matrix-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #005293, #DC052D);
}

.ces-matrix-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.ces-matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Competence Card */
.ces-competence-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 5px solid #005293;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ces-competence-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 82, 147, 0.2);
    border-top-color: #DC052D;
}

.ces-card-visual {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.ces-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.ces-competence-card:hover .ces-card-visual img {
    transform: scale(1.1);
}

.ces-card-emblem {
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #005293, #003865);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 2;
}

.ces-competence-card:hover .ces-card-emblem {
    background: linear-gradient(135deg, #DC052D, #a80423);
    transform: rotate(360deg) scale(1.1);
    bottom: -20px;
}

.ces-card-content {
    padding: 40px 25px 30px;
    flex: 1;
}

.ces-card-content h3 {
    color: #005293;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s;
}

.ces-competence-card:hover .ces-card-content h3 {
    color: #DC052D;
}

.ces-card-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.ces-competence-list {
    list-style: none;
    margin-top: 15px;
}

.ces-competence-list li {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ces-competence-list li::before {
    content: '▹';
    color: #DC052D;
    font-size: 1rem;
}

/* ===== CONVERGENCE PANEL ===== */
.ces-convergence {
    padding: 80px 0;
    background: white;
}

.ces-convergence-panel {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 82, 147, 0.1);
    border-left: 5px solid #005293;
    border-right: 5px solid #DC052D;
}

.ces-convergence-panel i {
    font-size: 5rem;
    color: #005293;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.ces-convergence-panel:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #DC052D;
}

.ces-convergence-panel h2 {
    color: #005293;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ces-convergence-panel p {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
@keyframes cesKineticShift {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .ces-matrix-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .ces-hero-nexus h1 {
        font-size: 3rem;
    }
    
    .ces-synergy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ces-synergy-visual {
        order: -1;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .ces-hero-nexus {
        padding: 140px 0 80px;
    }
    
    .ces-hero-nexus h1 {
        font-size: 2.4rem;
    }
    
    .ces-hero-nexus p {
        font-size: 1.1rem;
    }
    
    .ces-matrix-header h2 {
        font-size: 2.2rem;
    }
    
    .ces-matrix-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .ces-convergence-panel {
        padding: 40px 25px;
    }
    
    .ces-convergence-panel h2 {
        font-size: 2rem;
    }
    
    .ces-convergence-panel p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .ces-hero-nexus h1 {
        font-size: 1.8rem;
    }
    
    .ces-synergy-content h2 {
        font-size: 2rem;
    }
    
    .ces-matrix-header h2 {
        font-size: 1.8rem;
    }
    
    .ces-card-emblem {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        bottom: -25px;
    }
}