/* ====== TRANSFORMER TESTING PAGE STYLING ====== */
:root {
    --testing-primary: #0c6123; /* Deep professional blue */
    --testing-secondary: #1e996c; /* Royal blue */
    --testing-accent: #2E7D32; /* Safety green */
    --testing-highlight: #4CAF50; /* Bright green */
    --testing-light: #81C784; /* Light green */
    --testing-bg: #f8fafc;
    --testing-card: #ffffff;
    --testing-border: #e1e8f0;
    --testing-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --testing-glow: 0 0 30px rgba(76, 175, 80, 0.15);
}

/* ====== PAGE HEADER ====== */
.testing-header {
    background: linear-gradient(135deg, rgba(12, 36, 97, 0.95), rgba(12, 73, 97, 0.85)), 
                url('../images/serv.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.testing-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        var(--testing-accent) 0%,
        var(--testing-highlight) 50%,
        var(--testing-light) 100%);
    animation: shimmer 3s infinite;
}

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

.testing-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-tag {
    display: inline-block;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid var(--testing-highlight);
    color: var(--testing-highlight);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

.testing-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.testing-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s both;
}

/* ====== QUALITY ASSURANCE BANNER ====== */
.quality-banner {
    background: linear-gradient(135deg, var(--testing-accent), var(--testing-highlight));
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quality-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="white" stroke-width="2" stroke-dasharray="5,5" opacity="0.2"/></svg>');
}

.quality-banner .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.quality-banner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.quality-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.6;
}

.certification-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: white;
}

/* ====== CONTENT SECTIONS ====== */
.content-section {
    padding: 100px 0;
    position: relative;
}

.content-section.light-bg {
    background: var(--testing-bg);
}

.content-section .container {
    max-width: 1200px;
}

.content-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: var(--testing-primary);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--testing-accent), var(--testing-highlight));
    border-radius: 2px;
}

.section-intro {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 60px;
    padding-left: 30px;
    border-left: 4px solid var(--testing-light);
    background: linear-gradient(90deg, rgba(129, 199, 132, 0.1), transparent);
    padding: 25px;
    border-radius: 0 12px 12px 0;
}

/* ====== TESTING PROCESS ====== */
.testing-process {
    margin: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, var(--testing-accent), var(--testing-highlight));
    z-index: 1;
    border-radius: 2px;
}

.step-card {
    background: var(--testing-card);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--testing-shadow);
    border: 2px solid var(--testing-border);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--testing-accent), var(--testing-highlight));
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--testing-primary), var(--testing-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 25px;
    position: relative;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(12, 36, 97, 0.2);
}

.step-card h3 {
    color: var(--testing-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(12, 97, 50, 0.15);
    border-color: var(--testing-light);
}

/* ====== IMAGE GRID ====== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.image-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--testing-shadow);
    transition: all 0.4s ease;
    height: 300px;
    cursor: pointer;
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 50%, rgba(12, 97, 91, 0.9));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(12, 97, 67, 0.95));
    color: white;
    padding: 25px;
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
    text-align: center;
}

.image-card::after {
    content: '🔍 View ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    background: rgba(76, 175, 80, 0.9);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.image-card:hover::before {
    opacity: 1;
}

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

.image-card:hover span {
    transform: translateY(0);
}

.image-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ====== STATS SECTION ====== */
.stats-section {
    background: linear-gradient(135deg, var(--testing-primary), var(--testing-secondary));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="white" stroke-width="0.5" stroke-dasharray="10,10" opacity="0.1"/></svg>');
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--testing-highlight);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* ====== CTA SECTION ====== */
.cta-section {
    background: linear-gradient(135deg, rgba(12, 36, 97, 0.05), rgba(46, 125, 50, 0.05));
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--testing-accent) 0%,
        var(--testing-highlight) 50%,
        var(--testing-light) 100%);
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: var(--testing-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-section .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--testing-primary), var(--testing-secondary));
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(12, 36, 97, 0.2);
}

.cta-section .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-section .btn:hover::before {
    left: 100%;
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(12, 36, 97, 0.3);
}

/* ====== QUALITY STANDARDS SECTION ====== */
.standards-section {
    padding: 80px 0;
    background: var(--testing-bg);
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.standard-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--testing-shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.standard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--testing-accent), var(--testing-highlight));
}

.standard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--testing-light);
}

.standard-card i {
    font-size: 2.5rem;
    color: var(--testing-highlight);
    margin-bottom: 20px;
}

.standard-card h4 {
    color: var(--testing-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.standard-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .testing-header h1 {
        font-size: 3.2rem;
    }
    
    .content-section h2 {
        font-size: 2.4rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .testing-header {
        padding: 100px 0 60px;
        margin-top: 0.3rem;
    }
    
    .testing-header h1 {
        font-size: 2.5rem;
    }
    
    .content-section {
        padding: 70px 0;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .section-intro {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .testing-header h1 {
        font-size: 2rem;
    }
    
    .page-tag {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat h3 {
        font-size: 2.8rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
}

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

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}