/* ============================================
   QUALITY CONTROL PAGE - COMPLETE STYLES
   ============================================ */

/* ============================================
   PAGE HERO
   ============================================ */
.qc-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 120px 0 60px;
    overflow: hidden;
}

.qc-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') center/cover no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.qc-hero-content {
    position: relative;
    z-index: 1;
}

.qc-hero-badge {
    display: inline-block;
    background: rgba(40, 167, 69, 0.2);
    color: #5dcf78;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.qc-hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.qc-hero-title span {
    color: #5dcf78;
}

.qc-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   QUALITY CONTROL SECTION
   ============================================ */
.qc-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: #1a237e;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2332;
}

.section-title span {
    color: #28a745;
}

.section-subtitle {
    color: #6c7a8a;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 10px auto 0;
}

/* ============================================
   QC CARD
   ============================================ */
.qc-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.qc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.qc-card-highlight {
    position: relative;
    border: 2px solid #28a745;
    background: linear-gradient(180deg, #ffffff, #f8fff9);
}

.qc-card-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.qc-badge-exclusive {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(247, 147, 30, 0.3);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   QC IMAGE
   ============================================ */
.qc-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #f0f0f0;
}

.qc-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.qc-card:hover .qc-image-container img {
    transform: scale(1.05);
}

.qc-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 50, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.qc-card:hover .qc-image-overlay {
    opacity: 1;
}

.qc-image-overlay i {
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.8;
}

/* ============================================
   QC BODY
   ============================================ */
.qc-body {
    padding: 25px 25px 30px;
}

.qc-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #28a745;
}

.qc-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 10px;
}

.qc-text {
    color: #4a5a6a;
    line-height: 1.7;
    font-size: 0.92rem;
    margin-bottom: 15px;
}

.qc-tag-footer {
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.qc-tag-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c7a8a;
    letter-spacing: 0.5px;
}

.qc-tag-footer span i {
    color: #28a745;
    font-size: 0.8rem;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certifications-section {
    padding: 80px 0;
    background: #ffffff;
}

.cert-badge {
    display: inline-block;
    background: #1a237e;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.cert-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 20px;
}

.cert-title span {
    color: #28a745;
}

.cert-text {
    color: #4a5a6a;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 25px;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #4a5a6a;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list li i {
    color: #28a745;
    font-size: 1.1rem;
}

.cert-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.cert-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.cert-image-wrapper:hover img {
    transform: scale(1.02);
}

.cert-badge-iso {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    border-left: 4px solid #28a745;
}

.cert-badge-iso i {
    font-size: 1.5rem;
    color: #28a745;
}

.cert-badge-iso span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   QC CTA
   ============================================ */
.qc-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.qc-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.05), transparent);
    border-radius: 50%;
}

.cta-badge {
    display: inline-block;
    background: rgba(40, 167, 69, 0.15);
    color: #5dcf78;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(40, 167, 69, 0.15);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.cta-title span {
    color: #5dcf78;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    color: #ffffff;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #28a745;
    color: #ffffff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    background: #1e7e34;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .qc-hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cert-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .qc-hero {
        min-height: 40vh;
        padding: 100px 0 40px;
    }
    
    .qc-hero-title {
        font-size: 2rem;
    }
    
    .qc-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .cert-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .cert-text {
        text-align: center;
    }
    
    .cert-list {
        text-align: center;
    }
    
    .cert-list li {
        justify-content: center;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .qc-hero-title {
        font-size: 1.6rem;
    }
    
    .qc-hero-badge {
        font-size: 0.65rem;
        padding: 6px 16px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .qc-body {
        padding: 20px 18px 22px;
    }
    
    .qc-card-title {
        font-size: 1rem;
    }
    
    .qc-text {
        font-size: 0.85rem;
    }
    
    .cert-title {
        font-size: 1.3rem;
    }
    
    .cert-badge-iso {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
    }
    
    .cert-badge-iso i {
        font-size: 1.2rem;
    }
    
    .cert-badge-iso span {
        font-size: 0.75rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    #scrollTopBtn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .qc-card,
    .qc-image-container img,
    .qc-image-overlay,
    .cert-image-wrapper img,
    .cta-btn,
    #scrollTopBtn {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
    
    .qc-card-highlight::before {
        animation: none !important;
    }
    
    .qc-badge-exclusive {
        animation: none !important;
    }
}

/* ============================================
   TOUCH DEVICES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .qc-card:hover {
        transform: none !important;
    }
    
    .qc-card:hover .qc-image-container img {
        transform: none !important;
    }
    
    .qc-card:hover .qc-image-overlay {
        opacity: 1 !important;
    }
}