/* pec-procurement-solutions.css - Procurement of Equipment and Control */
/* Prefix: pec (Procurement Equipment Control) */

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

.pec-procurement-hero::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='60' height='60'%3E%3Crect x='0' y='0' width='60' height='60' fill='none'/%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.07)'/%3E%3Cline x1='30' y1='0' x2='30' y2='60' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cline x1='0' y1='30' x2='60' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    opacity: 0.1;
    animation: pecKineticShift 30s ease infinite alternate;
}

.pec-procurement-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-transform: camelcase;
    font-weight: 800;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* ===== INTRO SECTION ===== */
.pec-procurement-intro {
    padding: 80px 0;
    background: white;
}

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

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

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

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

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

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

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

.pec-procurement-visual:hover img {
    transform: scale(1.05);
}

/* ===== EQUIPMENT CATALOG ===== */
.pec-equipment-catalog {
    padding: 50px 0;
    background: #f8f9fa;
}

.pec-catalog-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

.pec-catalog-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Category Sections */
.pec-category-section {
    margin-bottom: 60px;
}

.pec-category-section:last-child {
    margin-bottom: 0;
}

.pec-category-title {
    color: #005293;
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #DC052D;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pec-category-title i {
    color: #DC052D;
    font-size: 2rem;
}

.pec-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Equipment Cards */
.pec-equipment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-left: 4px solid #005293;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pec-equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 82, 147, 0.2);
    border-left-color: #DC052D;
}

.pec-equipment-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.pec-equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.pec-equipment-card:hover .pec-equipment-image img {
    transform: scale(1.1);
}

.pec-equipment-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 82, 147, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Fixes top clipping issue */
    align-items: center;
    padding: 15px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    z-index: 2;
    overflow-y: auto;
}

.pec-equipment-card:hover .pec-equipment-popup {
    opacity: 1;
    transform: translateY(0);
}

.pec-equipment-popup p {
    color: white !important;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.pec-equipment-popup ul {
    text-align: left;
    margin-top: 10px;
    width: 100%;
    padding-left: 20px;
}

.pec-equipment-popup li {
    color: rgba(255,255,255,0.95) !important;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.pec-equipment-popup li::before {
    display: none; /* Hide custom before element since we use native bullets for better wrapping */
}

.pec-equipment-content {
    padding: 25px 20px 25px 25px;
    flex: 1;
}

.pec-equipment-content h4 {
    color: #005293;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s;
}

.pec-equipment-card:hover .pec-equipment-content h4 {
    color: #DC052D;
}

.pec-equipment-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.pec-equipment-features {
    list-style: none;
    margin-top: 10px;
}

.pec-equipment-features li {
    color: #666;
    margin-bottom: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pec-equipment-features li::before {
    content: '▹';
    color: #DC052D;
    font-size: 1rem;
}

/* ===== PROCUREMENT PROCESS ===== */
.pec-procurement-process {
    padding: 80px 0;
    background: white;
}

.pec-process-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

.pec-process-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.pec-process-steps {
    max-width: 900px;
    margin: 0 auto;
}

.pec-process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 5px solid #005293;
}

.pec-process-step:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 15px 30px rgba(0, 82, 147, 0.1);
    border-left-color: #DC052D;
}

.pec-step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 82, 147, 0.2);
    line-height: 1;
    min-width: 80px;
    text-align: center;
}

.pec-process-step:hover .pec-step-number {
    color: rgba(220, 5, 45, 0.2);
}

.pec-step-content h3 {
    color: #005293;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pec-step-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== QUALITY ASSURANCE ===== */
.pec-quality-assurance {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pec-quality-panel {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 82, 147, 0.1);
    border-top: 5px solid #005293;
    border-bottom: 5px solid #DC052D;
}

.pec-quality-panel i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 25px;
}

.pec-quality-panel h2 {
    color: #005293;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

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

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

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

@media (max-width: 992px) {
    .pec-procurement-hero h1 {
        font-size: 2.8rem;
    }
    
    .pec-procurement-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pec-procurement-visual {
        order: -1;
        max-height: 400px;
    }
    
    .pec-category-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .pec-procurement-hero {
        padding: 140px 0 80px;
    }
    
    .pec-procurement-hero h1 {
        font-size: 2.2rem;
    }
    
    .pec-procurement-hero p {
        font-size: 1.1rem;
    }
    
    .pec-catalog-header h2 {
        font-size: 2.2rem;
    }
    
    .pec-equipment-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pec-process-step {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pec-step-number {
        text-align: center;
    }
    
    .pec-quality-panel {
        padding: 35px 25px;
    }
    
    .pec-quality-panel h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .pec-procurement-hero h1 {
        font-size: 1.8rem;
    }
    
    .pec-procurement-content h2 {
        font-size: 2rem;
    }
    
    .pec-catalog-header h2 {
        font-size: 1.8rem;
    }
    
    .pec-category-title {
        font-size: 1.5rem;
    }
}

/* ===== PIGGING MODAL ===== */
.pec-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.pec-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.pec-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.pec-modal-overlay.active .pec-modal-content {
    transform: translateY(0);
}
.pec-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 35px; height: 35px;
    display: flex; justify-content: center; align-items: center;
    z-index: 10;
    transition: all 0.2s;
}
.pec-modal-close:hover {
    background: #DC052D; color: white;
}
.pec-modal-image {
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    padding: 15px;
}
.pec-modal-image img {
    width: 100%; height: 300px; object-fit: contain;
    border-radius: 0 0 15px 15px;
    display: block;
}
.pec-modal-body {
    padding: 30px;
}
.pec-modal-body h3 {
    color: #005293; margin-bottom: 15px; font-size: 1.8rem;
}
.pec-modal-body p {
    color: #555; line-height: 1.6; font-size: 1.05rem;
}
.pec-pigging-link {
    color: #005293;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
}
.pec-pigging-link:hover {
    color: #DC052D;
    text-decoration: underline;
}

/* ===== MARINE MACHINERIES TABS ===== */
.pec-marine-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
    padding: 6px;
    background: #f0f4f8;
    border-radius: 14px;
    border: 1px solid #e0e8f0;
}

.pec-marine-tab {
    flex: 1 1 auto;
    padding: 12px 22px;
    border: none;
    background: transparent;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
}

.pec-marine-tab i {
    font-size: 1rem;
}

.pec-marine-tab:hover {
    background: #fff;
    color: #005293;
    box-shadow: 0 2px 10px rgba(0,82,147,0.1);
}

.pec-marine-tab.active {
    background: linear-gradient(135deg, #005293, #0070c9);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,82,147,0.35);
}

.pec-marine-tab-content {
    display: none;
    animation: marineTabFadeIn 0.4s ease;
}

.pec-marine-tab-content.active {
    display: block;
}

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

@media (max-width: 768px) {
    .pec-marine-tab {
        font-size: 0.78rem;
        padding: 10px 14px;
    }
}