/* ===== DEVOPS-SPECIFIC STYLES ===== */
/* This file contains styles specific to the DevOps services page */
/* Global styles are imported from main.css */

/* ===== DEVOPS HERO SECTION ===== */
.devops-hero {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.85) 0%, rgba(45, 45, 45, 0.75) 100%),
        url("../assets/services/devops-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;
}

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

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

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

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

.benefit-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);
}

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

.benefit-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);
}

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

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

.benefit-metric {
    background: rgba(248, 195, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(248, 195, 0, 0.2);
}

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

.metric-label {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* ===== PIPELINE SECTION ===== */
.pipeline-section {
    background: var(--light-bg);
}

.pipeline-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    flex-wrap: nowrap;
}

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

.stage-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;
    position: relative;
    z-index: 2;
}

.stage-content {
    width: 100%;
}

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

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

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

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

.stage-connector .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;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.service-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);
}

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

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

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

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

.service-features li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== METRICS DASHBOARD ===== */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.metric-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;
    position: relative;
    border-top: 4px solid var(--accent-color);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1;
}

.metric-label {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.metric-trend {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-trend.up {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

/* ===== TECHNOLOGY STACK ===== */
.tech-stack {
    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);
}

.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);
}

/* ===== APPROACH SECTION ===== */
.approach-section {
    background: var(--light-bg);
}

.approach-steps {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.approach-step {
    background: var(--text-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: var(--transition);
}

.approach-step:hover {
    transform: translateX(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 60px;
    height: 60px;
    background: rgba(248, 195, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

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

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

.step-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.step-content li {
    padding: 8px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 25px;
}

.step-content li::before {
    content: "→";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== COMPARISON SECTION ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-column {
    background: var(--text-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.comparison-column h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid;
}

.traditional h3 {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.devops h3 {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

.comparison-item {
    margin-bottom: 25px;
}

.item-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.item-bar {
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.traditional .bar-fill {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.devops .bar-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.item-value {
    text-align: right;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

/* ===== 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 DEVOPS PAGE ===== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .devops-hero .hero-content h1 {
        font-size: 3rem;
    }

    .devops-hero .hero-content p {
        font-size: 1.2rem;
    }

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

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

    .devops-hero .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .pipeline-flow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }

    .pipeline-stage {
        flex: 0 0 calc(33.333% - 20px);
        margin-bottom: 20px;
    }

    .stage-connector {
        display: none; /* Hide connectors on tablets */
    }

    .approach-step {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .step-number {
        margin: 0 auto;
    }

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

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

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

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

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

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

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

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

    .devops-hero .hero-btns .btn {
        width: 100%;
        max-width: 250px;
    }

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

    .pipeline-stage {
        flex: 0 0 calc(50% - 20px);
    }

    .metrics-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .metric-value {
        font-size: 2rem;
    }

    .approach-step {
        padding: 30px 20px;
    }

    .step-content ul {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .cta-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

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

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

    .benefit-card,
    .service-card,
    .metric-card,
    .tech-category,
    .comparison-column {
        padding: 25px 20px;
    }

    .benefit-icon,
    .service-icon,
    .stage-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .pipeline-stage {
        flex: 0 0 100%;
    }

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

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

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

/* Mobile landscape orientation specific adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .devops-hero {
        min-height: 350px;
        padding: 60px 20px;
    }
}
