/* ==========================================================================
   DEVOPS PAGE — HERO SECTION
   ========================================================================== */

.devops-hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0 5rem;
    background: #0b0717 url('/assets/images/DevOps/full-screen.webp') no-repeat center top / 100% 100%;
    color: var(--color-text-primary);
    isolation: isolate;
}

.devops-hero-glow {
    display: none;
}

.devops-hero .container.xl {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.devops-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.devops-hero-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
    color: var(--color-text-primary);
}

.devops-hero-title .highlight {
    color: #a7f3d0;
    background: linear-gradient(90deg, #7ef7c8, #a7f3d0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.devops-hero-copy {
    font-size: 1.0625rem;
    line-height: var(--line-height-relaxed);
    color: rgba(230, 225, 245, 0.78);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.devops-hero-actions {
    display: flex;
    justify-content: center;
}

.devops-hero-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--border-radius-full);
    background: #baf7cf;
    color: #0a1a12;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    text-decoration: none;
    overflow: hidden;
}

.devops-hero-cta:hover {
    color: #0a1a12;
    text-decoration: none;
}

.devops-hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, transparent 35%, rgba(255, 255, 255, 0.65) 50%, transparent 65%, transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
    animation: devopsBtnShine 2.6s ease-in-out infinite;
}

/* ==========================================================================
   ROTATING PHONE-STYLE CARD STACK
   ========================================================================== */

.devops-hero-cards {
    position: relative;
    width: 100%;
    max-width: 1150px;
    margin: 4.5rem auto 0;
    height: 440px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.devops-hero-card {
    position: relative;
    flex: 0 0 auto;
    width: 205px;
    height: 370px;
    border-radius: 1.75rem;
    padding: 6px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 25px rgba(139, 92, 246, 0.15);
    transform-origin: top center;
    animation: devopsCardFloat 6s ease-in-out infinite;
    backdrop-filter: blur(8px);
}

.devops-hero-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1.4rem;
    overflow: hidden;
}

.devops-hero-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 8 / 15;
    display: block;
}

.devops-hero-card.card-1 {
    transform: rotate(-12deg) translate(5px, 15px);
    animation-delay: -0.6s;
    z-index: 1;
}

.devops-hero-card.card-2 {
    transform: rotate(-6deg) translate(2px, 5px);
    animation-delay: -1.8s;
    z-index: 2;
}

.devops-hero-card.card-3 {
    transform: rotate(0deg) translateY(-8px);
    width: 225px;
    height: 400px;
    animation-delay: -3s;
    z-index: 3;
}

.devops-hero-card.card-4 {
    transform: rotate(6deg) translate(-2px, 5px);
    animation-delay: -2.4s;
    z-index: 2;
}

.devops-hero-card.card-5 {
    transform: rotate(12deg) translate(-5px, 15px);
    animation-delay: -1.2s;
    z-index: 1;
}

@keyframes devopsCardFloat {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: -6px 12px;
    }
}

@media (max-width: 1024px) {
    .devops-hero-cards {
        height: 340px;
        gap: 0.75rem;
    }

    .devops-hero-card {
        width: 160px;
        height: 290px;
        border-radius: 1.35rem;
        padding: 5px;
    }

    .devops-hero-card-inner {
        border-radius: 1rem;
    }

    .devops-hero-card.card-3 {
        width: 180px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .devops-hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .devops-hero-cards {
        height: 250px;
        gap: 0.5rem;
        margin-top: 2.5rem;
    }

    .devops-hero-card {
        width: 115px;
        height: 210px;
        border-radius: 1.1rem;
        padding: 4px;
    }

    .devops-hero-card-inner {
        border-radius: 0.85rem;
    }

    .devops-hero-card.card-3 {
        width: 130px;
        height: 235px;
    }

    .devops-hero-card.card-1,
    .devops-hero-card.card-5 {
        display: none;
    }
}

@media (max-width: 480px) {
    .devops-hero-title {
        font-size: var(--font-size-h2-mobile);
    }

    .devops-hero-copy {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   DEVOPS PAGE — TESTIMONIAL QUOTE GRID
   ========================================================================== */

.devops-quotes {
    padding: 6rem 0;
    background: transparent;
}

.devops-quotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.devops-quote-tile {
    position: relative;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    height: 210px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.devops-quote-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 130, 255, 0.45);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 25px rgba(139, 92, 246, 0.25);
}

.devops-quote-tile--text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.35rem 1.5rem;
    color: #ffffff;
}

.devops-quote-tile--text.devops-quote-tile--dark {
    color: #ffffff;
}

.devops-quote-text {
    font-size: 0.925rem;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-medium);
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.devops-quote-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
}

.devops-quote-name {
    font-weight: var(--font-weight-semibold);
    color: #a7f3d0;
}

.devops-quote-role {
    color: rgba(255, 255, 255, 0.8);
}

.devops-quote-tile--media {
    padding: 0;
    background: #120d22;
}

.devops-quote-tile--media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
    transition: transform var(--transition-slow);
}

.devops-quote-tile--media:hover img {
    transform: scale(1.04);
}

@media (max-width: 1024px) {
    .devops-quotes {
        padding: 4.5rem 0;
    }

    .devops-quotes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .devops-quotes {
        padding: 3.5rem 0;
    }

    .devops-quotes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .devops-quote-tile {
        height: 170px;
    }

    .devops-quote-text {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   DEVOPS PAGE — FEATURE ROWS (dashboard mockups)
   ========================================================================== */

.devops-features {
    padding: 6rem 0;
    background: var(--color-bg-primary);
}

.devops-feature-rows {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 3.5rem;
}

.devops-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: 3.5rem;
}

.devops-feature-row--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.devops-feature-row--reverse .devops-feature-visual {
    order: 1;
}

.devops-feature-row--reverse .devops-feature-copy {
    order: 2;
}

.devops-feature-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.devops-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent-primary);
}

.devops-feature-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.devops-feature-heading {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--color-text-primary);
    margin: 0;
}

.devops-feature-heading .is-muted {
    color: var(--color-text-muted);
}

.devops-feature-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: var(--line-height-relaxed);
    max-width: 460px;
    margin: 0;
}

.devops-feature-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0.25rem 0 0.5rem;
    padding: 0;
}

.devops-feature-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.devops-feature-list-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent-primary);
    flex-shrink: 0;
}

.devops-feature-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    background: var(--color-bg-card);
    border: var(--border-width-thin) solid var(--border-color-medium);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    text-decoration: none;
    overflow: hidden;
}

.devops-feature-btn:hover {
    color: var(--color-text-primary);
    text-decoration: none;
}

.devops-feature-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, transparent 35%, rgba(255, 255, 255, 0.25) 50%, transparent 65%, transparent 100%);
    transform: translateX(-100%);
    pointer-events: none;
    animation: devopsBtnShine 2.6s ease-in-out infinite;
}

.devops-feature-btn-arrow {
    position: relative;
}

@keyframes devopsBtnShine {
    0% {
        transform: translateX(-100%);
    }
    40%,
    100% {
        transform: translateX(100%);
    }
}

/* --- Layered dashboard mockup visual --- */

.devops-feature-visual {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.devops-mock {
    position: absolute;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.devops-feature-visual:hover .devops-mock-back {
    transform: translate(14px, -14px) rotate(1.5deg);
}

.devops-feature-visual:hover .devops-mock-front,
.devops-feature-visual:hover .devops-mock-front--alt {
    transform: translate(-10px, 10px);
}

.devops-feature-visual:hover .devops-mock-badge {
    transform: translate(6px, -6px) scale(1.03);
}

.devops-mock-back {
    top: 0;
    right: 6%;
    width: 68%;
    height: 62%;
    background: var(--color-bg-navy-2);
    border: var(--border-width-thin) solid var(--border-color-light);
    box-shadow: var(--shadow-lg);
}

.devops-mock-front {
    left: 0;
    bottom: 0;
    width: 78%;
    height: 68%;
    background: var(--color-bg-navy-2);
    box-shadow: var(--shadow-xl);
}

.devops-mock-back img,
.devops-mock-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.devops-mock-badge {
    right: 4%;
    bottom: 8%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    background: #14141a;
    color: var(--color-text-primary);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-lg);
}

.devops-mock-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

.devops-mock-badge--alt {
    left: 2%;
    top: 6%;
    right: auto;
    bottom: auto;
}

.devops-mock-badge-dot--ok {
    background: var(--color-success);
}

@media (max-width: 1024px) {
    .devops-features {
        padding: 4.5rem 0;
    }

    .devops-feature-rows {
        gap: 4.5rem;
    }

    .devops-feature-row,
    .devops-feature-row--reverse {
        grid-template-columns: 1fr;
    }

    .devops-feature-row--reverse .devops-feature-visual,
    .devops-feature-row--reverse .devops-feature-copy {
        order: initial;
    }

    .devops-feature-visual {
        min-height: 300px;
        order: -1;
    }
}

@media (max-width: 640px) {
    .devops-features {
        padding: 3.5rem 0;
    }

    .devops-feature-rows {
        gap: 3.5rem;
    }

    .devops-feature-visual {
        min-height: 260px;
    }

    .devops-feature-desc {
        max-width: none;
    }
}
