/* ===== QUALITY ENGINEERING PAGE-SPECIFIC STYLES ===== */
/* This file contains styles specific to the Quality Engineering service page */
/* Note: Common styles are already defined in main.css */

/* ===== QUALITY ENGINEERING HERO SECTION ===== */
.qe-hero {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.85) 0%, rgba(45, 45, 45, 0.75) 100%),
        url("../assets/services/quality-engineering-hero.jpg") center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 120px 20px;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qe-hero .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.qe-hero .hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.qe-hero .hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== QUALITY TRANSFORMATION SECTION ===== */
.transformation-section {
    background: var(--light-bg);
}

.transformation-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.transformation-card {
    background: var(--text-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 0;
}

.card-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.outdated {
    background: #e74c3c;
    color: white;
}

.card-badge.modern {
    background: var(--accent-color);
    color: var(--text-dark);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 30px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li.negative::before {
    content: "✕";
    color: #e74c3c;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-list li.positive::before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.transformation-arrow {
    font-size: 2rem;
    color: var(--accent-color);
}

/* ===== METRICS SECTION ===== */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-metric {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.impact-metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.metric-visual {
    margin-bottom: 25px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-container {
    width: 120px;
    height: 120px;
    position: relative;
}

.gauge {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--accent-color), #ffd700);
    transition: height 1.5s ease-in-out;
    height: 0;
}

.gauge-cover {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.metric-info h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.metric-info p {
    color: var(--medium-gray);
    margin: 0;
}

/* ===== PILLARS SECTION ===== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pillar-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--text-dark);
}

.pillar-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.pillar-card p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.pillar-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-features li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.pillar-features li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== TESTING PYRAMID INFOGRAPHIC ===== */
.pyramid-section {
    background: linear-gradient(135deg, #0f1b33 0%, #1a3658 100%);
    color: var(--text-light);
}

.pyramid-section .section-title {
    color: var(--text-light);
}

.pyramid-section .section-title::after {
    background-color: var(--accent-color);
}

.pyramid-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.pyramid-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pyramid-level {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 25px;
    transition: var(--transition);
    animation: slideInRight 0.6s ease-out;
    border-left: 4px solid var(--accent-color);
}

.pyramid-level:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.level-content {
    flex: 1;
}

.level-content h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.level-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
}

.level-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-left: 20px;
}

.level-bar {
    width: 100px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-left: 20px;
    overflow: hidden;
    position: relative;
}

.level-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--accent-color);
    border-radius: 10px;
    animation: growBar 1s ease-out;
}

.unit .level-bar::after {
    width: 40%;
}
.integration .level-bar::after {
    width: 30%;
}
.e2e .level-bar::after {
    width: 20%;
}
.exploratory .level-bar::after {
    width: 10%;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growBar {
    from {
        width: 0;
    }
}

/* ===== TECHNOLOGY STACK ===== */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-category {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tech-category h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: rgba(248, 195, 0, 0.1);
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(248, 195, 0, 0.3);
    transition: var(--transition);
}

.tech-item:hover {
    background: rgba(248, 195, 0, 0.2);
    transform: translateY(-2px);
}

/* ===== LIFECYCLE FLOW ===== */
.lifecycle-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    flex-wrap: nowrap;
}

.phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    min-width: 0;
    padding: 0 15px;
}

.phase-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    transition: var(--transition);
}

.phase:hover .phase-icon {
    transform: scale(1.1);
}

.phase h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.phase p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.phase-connector {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 40px;
    max-width: 80px;
    margin-top: 40px;
}

.connector-line {
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    position: relative;
}

.connector-arrow {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--accent-color);
    background: transparent;
    padding: 0;
}

/* ===== FRAMEWORK ARCHITECTURE ===== */
.framework-architecture {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.framework-layer {
    background: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 30px;
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.framework-layer:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.layer-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    min-width: 200px;
}

.layer-components {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}

.layer-components span {
    background: rgba(248, 195, 0, 0.1);
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(248, 195, 0, 0.3);
}

/* ===== CASE STUDIES ===== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-study {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.case-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-gray) 100%);
    color: var(--text-light);
    padding: 25px 30px;
}

.case-header h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.case-industry {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.case-content {
    padding: 30px;
}

.case-content p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.case-results {
    display: flex;
    gap: 20px;
}

.result {
    text-align: center;
    flex: 1;
}

.value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-gray) 100%);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== RESPONSIVE STYLES FOR QUALITY ENGINEERING PAGE ===== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .transformation-grid {
        max-width: 900px;
    }

    .lifecycle-flow {
        max-width: 1000px;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .qe-hero {
        padding: 100px 20px;
        min-height: 500px;
    }

    .qe-hero .hero-content h1 {
        font-size: 2.8rem;
    }

    .qe-hero .hero-content p {
        font-size: 1.1rem;
    }

    .transformation-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .transformation-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
        justify-self: center;
    }

    .lifecycle-flow {
        flex-wrap: wrap;
        gap: 30px;
    }

    .phase {
        flex: 0 0 calc(50% - 15px);
    }

    .phase-connector {
        display: none;
    }

    .framework-layer {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .layer-name {
        min-width: auto;
        width: 100%;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-results {
        flex-direction: column;
        gap: 15px;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .qe-hero {
        padding: 80px 20px;
        min-height: 400px;
    }

    .qe-hero .hero-content h1 {
        font-size: 2.2rem;
    }

    .qe-hero .hero-content p {
        font-size: 1rem;
    }

    .transformation-card {
        padding: 30px 20px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .pyramid-level {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .level-percentage {
        margin-left: 0;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .phase {
        flex: 0 0 100%;
    }

    .lifecycle-flow {
        gap: 40px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .qe-hero {
        padding: 60px 15px;
        min-height: 350px;
    }

    .qe-hero .hero-content h1 {
        font-size: 1.8rem;
    }

    .qe-hero .hero-content p {
        font-size: 0.9rem;
    }

    .qe-hero .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .transformation-card {
        padding: 20px 15px;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .metrics-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .impact-metric {
        padding: 30px 20px;
    }

    .pillar-card {
        padding: 30px 20px;
    }

    .tech-category {
        padding: 20px 15px;
    }

    .tech-items {
        justify-content: center;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .case-header,
    .case-content {
        padding: 20px;
    }

    .cta-section {
        padding: 60px 15px;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}
