/* --- KOTTAKKAL MANAGEMENT SYSTEM CASE STUDY (SOFTWARE DEV) --- */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

/* Base Styles */
.khm-case-study {
    background-color: #070707;
    color: beige;
    font-family: "Google Sans Flex", sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.65;
}

.khm-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
    position: relative;
    z-index: 10;
}

/* Ambient Glow Backgrounds */
.khm-glow-bg {
    position: absolute;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Section Headings */
.khm-section-eyebrow {
    font-family: "Google Sans Flex", sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #B7410E;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 700;
}

.khm-section-title {
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: beige;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.khm-section-title span {
    color: #B7410E;
    background: linear-gradient(135deg, #B7410E 30%, #ff7f32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.khm-section-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(245, 245, 220, 0.7);
    max-width: 750px;
    line-height: 1.6;
}

.khm-section-header-center {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Breadcrumb override */
.breadcrumb {
    padding: 20px 5vw;
    font-size: 13px;
    color: rgba(245, 245, 220, 0.7);
    position: relative;
    z-index: 20;
}

.breadcrumb a {
    color: rgba(245, 245, 220, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #B7410E;
}

.breadcrumb span {
    color: beige;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.khm-hero {
    position: relative;
    padding: 85px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.khm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(183, 65, 14, 0.08);
    border: 1px solid rgba(183, 65, 14, 0.18);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #B7410E;
    margin-bottom: 25px;
}

.khm-pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: #B7410E;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #B7410E;
    animation: khm-pulse 2.2s infinite;
}

@keyframes khm-pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(183, 65, 14, 0.6);
    }
    70% {
        transform: scale(1.15);
        opacity: 0.4;
        box-shadow: 0 0 0 8px rgba(183, 65, 14, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(183, 65, 14, 0);
    }
}

.khm-hero-title {
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.khm-hero-title span {
    display: block;
    color: #B7410E;
    background: linear-gradient(95deg, #B7410E 0%, #ff7f32 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.khm-hero-sub {
    font-size: clamp(15px, 1.4vw, 18px);
    line-height: 1.6;
    color: rgba(245, 245, 220, 0.75);
    margin-bottom: 40px;
}

/* Hero snapshot grid */
.khm-hero-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    border-top: 1px solid rgba(245, 245, 220, 0.08);
    padding-top: 30px;
}

.khm-snap-box {
    padding: 5px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.khm-snap-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(245, 245, 220, 0.4);
    font-weight: 600;
}

.khm-snap-val {
    font-size: 14px;
    font-weight: 600;
    color: beige;
}

/* Mockup Frame & Phone Inside Hero */
.khm-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.khm-phone-mockup {
    width: 290px;
    height: 580px;
    background: #000000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border: 4px solid #222226;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.khm-phone-mockup:hover {
    transform: translateY(-8px) scale(1.02);
}

.khm-phone-notch {
    width: 110px;
    height: 25px;
    background: #000000;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 15px 15px;
    z-index: 30;
}

.khm-phone-screen {
    width: 100%;
    height: 100%;
    background: #0c0c0e;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.khm-phone-home-indicator {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 30;
}

/* Floating Stats */
.khm-floating-stat {
    position: absolute;
    background: rgba(10, 10, 12, 0.85);
    border: 1px solid rgba(183, 65, 14, 0.25);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    z-index: 20;
}

.khm-floating-stat:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: #B7410E;
}

.khm-floating-icon {
    font-size: 20px;
}

.khm-float-val {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.khm-float-lbl {
    display: block;
    font-size: 9px;
    color: rgba(245, 245, 220, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.khm-stat-1 {
    top: 15%;
    left: -20px;
}

.khm-stat-2 {
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
}

.khm-stat-2:hover {
    transform: translateY(-50%) scale(1.05);
}

.khm-stat-3 {
    bottom: 12%;
    left: -10px;
}

/* ==========================================================================
   2. HERO METRICS (ONE PLATFORM FOR EVERY CLINIC OPERATION)
   ========================================================================== */
.khm-hero-metrics {
    padding: 60px 0;
    background: #0b0b0e;
    border-bottom: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-metrics-header {
    text-align: center;
    margin-bottom: 45px;
}

.khm-metrics-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #B7410E;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.khm-metrics-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: beige;
    text-transform: uppercase;
}

.khm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.khm-metric-card {
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid rgba(245, 245, 220, 0.03);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.khm-metric-card:hover {
    transform: translateY(-5px);
    background: rgba(20, 20, 25, 0.85);
    border-color: rgba(183, 65, 14, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.khm-metric-number {
    display: block;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    color: #B7410E;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.khm-metric-title {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(245, 245, 220, 0.6);
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   3. THE BUSINESS CHALLENGE (DARK MODE)
   ========================================================================== */
.khm-challenge {
    background-color: #070707;
    color: beige;
    padding: 120px 0;
    border-bottom: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-challenge-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: flex-start;
}

.khm-challenge-intro {
    font-size: 20px;
    color: #B7410E;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 600;
}

.khm-challenge-desc {
    font-size: 16px;
    color: rgba(245, 245, 220, 0.7);
    line-height: 1.75;
}

.khm-challenge-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.khm-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.khm-bullet-icon {
    font-size: 18px;
    color: #B7410E;
    margin-top: 2px;
}

.khm-bullet-text {
    font-size: 15px;
    color: rgba(245, 245, 220, 0.8);
    line-height: 1.5;
}

/* Understanding Business - beige section */
.khm-understanding {
    background-color: beige;
    color: #070707;
    padding: 100px 0;
    border-radius: 40px 40px 0 0;
    position: relative;
    z-index: 15;
}

.khm-understanding .khm-section-title {
    color: #070707;
}

.khm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
}

.khm-lead-text {
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.4;
    font-weight: 600;
    color: #B7410E;
    margin-bottom: 30px;
}

.khm-body-text {
    font-size: 16px;
    line-height: 1.75;
    color: #333333;
}

/* ==========================================================================
   4. THE OPERATING ECOSYSTEM (INTERACTIVE ORBIT GRAPH)
   ========================================================================== */
.khm-ecosystem {
    padding: 120px 0;
    background-color: #070707;
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-ecosystem-visualizer {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-top: 50px;
    align-items: center;
}

/* SVG Interactive System Map */
.khm-svg-container {
    width: 100%;
    position: relative;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle at 50% 50%, rgba(183, 65, 14, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.khm-map-svg {
    width: 100%;
    height: 100%;
}

/* Orbit paths styling */
.khm-orbit-line {
    stroke: rgba(245, 245, 220, 0.04);
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

.khm-connector-line {
    stroke: rgba(183, 65, 14, 0.15);
    stroke-width: 1.5;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.khm-connector-line.active {
    stroke: #ff7f32;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px rgba(255, 127, 50, 0.6));
}

/* Orbit Node styling */
.khm-orbit-node {
    cursor: pointer;
}

.khm-orbit-node circle {
    fill: #151419;
    stroke: rgba(183, 65, 14, 0.3);
    stroke-width: 1.5;
    transform-origin: center;
    transform-box: fill-box;
    transition: stroke 0.3s ease, fill 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.khm-orbit-node text {
    fill: rgba(245, 245, 220, 0.6);
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    text-anchor: middle;
    transform-origin: center;
    transform-box: fill-box;
    transition: fill 0.3s ease, font-size 0.3s ease, transform 0.3s ease;
}

/* Orbit Node active states */
.khm-orbit-node:hover circle,
.khm-orbit-node.active circle {
    fill: rgba(183, 65, 14, 0.15);
    stroke: #ff7f32;
    stroke-width: 2;
    transform: scale(1.18);
}

.khm-orbit-node:hover text,
.khm-orbit-node.active text {
    fill: beige;
    transform: scale(1.12);
}

.khm-center-node circle {
    fill: #B7410E;
    stroke: beige;
    stroke-width: 2;
    filter: drop-shadow(0 0 15px rgba(183, 65, 14, 0.7));
}

.khm-center-node text {
    fill: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-anchor: middle;
}

/* Details Panel Card (Right side) */
.khm-ecosystem-details-card {
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid rgba(183, 65, 14, 0.2);
    border-radius: 24px;
    padding: 40px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.khm-ecosystem-details-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 100% 0%, rgba(183, 65, 14, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.khm-eco-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff7f32;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.khm-eco-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.khm-eco-desc {
    font-size: 15px;
    color: rgba(245, 245, 220, 0.7);
    line-height: 1.65;
    margin-bottom: 25px;
}

.khm-eco-bullets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.khm-eco-bullet-item {
    font-size: 13px;
    font-weight: 600;
    color: beige;
    display: flex;
    align-items: center;
    gap: 8px;
}

.khm-eco-bullet-item::before {
    content: '➔';
    color: #B7410E;
    font-size: 11px;
}

/* ==========================================================================
   5. THE PATIENT JOURNEY (TRACKER TIMELINE)
   ========================================================================== */
.khm-patient-journey {
    padding: 120px 0;
    background: linear-gradient(180deg, #070707 0%, #0b0b0e 100%);
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-journey-tracker {
    margin-top: 60px;
    position: relative;
}

/* Timeline progress bar */
.khm-journey-line {
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: rgba(245, 245, 220, 0.06);
    z-index: 1;
}

.khm-journey-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 14.28%; /* increments by step (100 / 7 steps) */
    background: linear-gradient(to right, #B7410E, #ff7f32);
    transition: width 0.5s ease;
}

.khm-journey-steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: relative;
    z-index: 2;
}

.khm-journey-step-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    outline: none;
}

.khm-journey-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #151419;
    border: 2px solid rgba(245, 245, 220, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(245, 245, 220, 0.4);
    margin-bottom: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.khm-journey-step-btn:hover .khm-journey-circle {
    border-color: #B7410E;
    color: #B7410E;
}

.khm-journey-step-btn.active .khm-journey-circle {
    background: #B7410E;
    border-color: beige;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(183, 65, 14, 0.6);
}

.khm-journey-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(245, 245, 220, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: color 0.3s ease;
}

.khm-journey-step-btn.active .khm-journey-name {
    color: #ffffff;
}

/* Journey Content Panel */
.khm-journey-panel {
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid rgba(245, 245, 220, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    animation: khm-fade-in 0.4s ease forwards;
}

@keyframes khm-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.khm-j-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(183, 65, 14, 0.08);
    border: 1px solid rgba(183, 65, 14, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.khm-j-info {
    flex: 1;
}

.khm-j-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.khm-j-desc {
    font-size: 15px;
    color: rgba(245, 245, 220, 0.7);
    line-height: 1.6;
}

/* ==========================================================================
   6. CLINICAL WORKFLOW MANAGEMENT (INTERACTIVE Badge State lifecycle)
   ========================================================================== */
.khm-workflow {
    padding: 120px 0;
    background-color: #070707;
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: center;
}

.khm-lifecycle-container {
    background: rgba(15, 15, 18, 0.8);
    border: 1px solid rgba(245, 245, 220, 0.08);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.khm-lifecycle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(245, 245, 220, 0.06);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.khm-lifecycle-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(245, 245, 220, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.khm-lifecycle-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.khm-status-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Badge specific colors */
.badge-scheduled { background: rgba(183, 65, 14, 0.08); border-color: rgba(183, 65, 14, 0.3); color: #B7410E; }
.badge-active { background: rgba(255, 127, 50, 0.08); border-color: rgba(255, 127, 50, 0.3); color: #ff7f32; }
.badge-completed { background: rgba(39, 201, 63, 0.08); border-color: rgba(39, 201, 63, 0.3); color: #27c93f; }
.badge-cancelled { background: rgba(255, 95, 86, 0.08); border-color: rgba(255, 95, 86, 0.3); color: #ff5f56; }
.badge-reverted { background: rgba(245, 245, 220, 0.05); border-color: rgba(245, 245, 220, 0.2); color: beige; }

.khm-status-badge:hover {
    transform: translateY(-2px);
}

.khm-status-badge.active {
    box-shadow: 0 0 12px currentColor;
    font-weight: 800;
}

.badge-scheduled.active { background: #B7410E; color: #ffffff; border-color: beige; }
.badge-active.active { background: #ff7f32; color: #ffffff; border-color: beige; }
.badge-completed.active { background: #27c93f; color: #ffffff; border-color: beige; }
.badge-cancelled.active { background: #ff5f56; color: #ffffff; border-color: beige; }
.badge-reverted.active { background: beige; color: #070707; border-color: #070707; }

/* Lifecycle content display */
.khm-lifecycle-content {
    background: #070708;
    border-radius: 16px;
    padding: 24px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(245, 245, 220, 0.03);
}

.khm-lf-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.khm-lf-desc {
    font-size: 13.5px;
    color: rgba(245, 245, 220, 0.6);
    line-height: 1.6;
    margin-bottom: 15px;
}

/* App updates checklist */
.khm-app-updates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px dashed rgba(245, 245, 220, 0.08);
    padding-top: 15px;
}

.khm-update-line {
    font-size: 12px;
    color: rgba(245, 245, 220, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.khm-update-line.updated::before {
    content: '⚡';
    color: #ff7f32;
}

/* ==========================================================================
   7. DEPARTMENTS & FUNCTIONALITIES (PEOPLE, FINANCE, INVENTORY)
   ========================================================================== */
.khm-modules {
    padding: 120px 0;
    background: linear-gradient(180deg, #070707 0%, #0d0d12 100%);
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.khm-module-card {
    background: rgba(20, 20, 25, 0.45);
    border: 1px solid rgba(245, 245, 220, 0.04);
    border-radius: 20px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.khm-module-card:hover {
    transform: translateY(-6px);
    border-color: rgba(183, 65, 14, 0.3);
    background: rgba(20, 20, 25, 0.75);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.khm-mod-icon {
    font-size: 32px;
    background: rgba(183, 65, 14, 0.08);
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid rgba(183, 65, 14, 0.25);
}

.khm-mod-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.khm-mod-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.khm-mod-list li {
    font-size: 14px;
    color: rgba(245, 245, 220, 0.65);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.khm-mod-list li::before {
    content: '✓';
    color: #ff7f32;
    font-weight: bold;
}

/* ==========================================================================
   8. BUSINESS INTELLIGENCE DASHBOARD (SANDBOX WIDGET)
   ========================================================================== */
.khm-bi-sandbox {
    padding: 120px 0;
    background-color: #070707;
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-bi-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;
    margin-top: 50px;
    align-items: center;
}

.khm-bi-controls {
    background: rgba(20, 20, 25, 0.45);
    border: 1px solid rgba(245, 245, 220, 0.05);
    border-radius: 20px;
    padding: 30px;
}

.khm-bi-controls h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.khm-bi-controls p {
    font-size: 14px;
    color: rgba(245, 245, 220, 0.6);
    margin-bottom: 25px;
}

.khm-bi-selector-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.khm-bi-branch-btn {
    background: rgba(245, 245, 220, 0.02);
    border: 1px solid rgba(245, 245, 220, 0.06);
    border-radius: 12px;
    padding: 15px 20px;
    color: beige;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.khm-bi-branch-btn:hover {
    background: rgba(183, 65, 14, 0.04);
    border-color: rgba(183, 65, 14, 0.2);
}

.khm-bi-branch-btn.active {
    background: rgba(183, 65, 14, 0.08);
    border-color: #B7410E;
    box-shadow: inset 3px 0 0 #B7410E;
}

.khm-bi-branch-btn .arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.khm-bi-branch-btn.active .arrow {
    opacity: 1;
    transform: translateX(0);
    color: #B7410E;
}

/* BI Dashboard Display simulator */
.khm-dashboard-preview {
    background: #0c0c0e;
    border: 1px solid #1e1e24;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.khm-db-header {
    background: #14141a;
    padding: 18px 25px;
    border-bottom: 1px solid #1e1e24;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.khm-db-logo {
    font-size: 13px;
    font-weight: 800;
    color: beige;
    letter-spacing: 1px;
}

.khm-db-logo span {
    color: #B7410E;
}

.khm-db-status {
    font-size: 10px;
    color: #27c93f;
    background: rgba(39, 201, 63, 0.08);
    border: 1px solid rgba(39, 201, 63, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.khm-db-body {
    padding: 25px;
}

.khm-db-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.khm-db-stat-box {
    background: #121216;
    border: 1px solid rgba(245, 245, 220, 0.04);
    border-radius: 12px;
    padding: 15px 18px;
}

.khm-db-stat-lbl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(245, 245, 220, 0.4);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.khm-db-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

/* Visual bar charts inside BI Dashboard */
.khm-db-chart-container {
    background: #121216;
    border: 1px solid rgba(245, 245, 220, 0.04);
    border-radius: 16px;
    padding: 20px;
}

.khm-db-chart-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(245, 245, 220, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.khm-bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    padding: 0 10px;
    position: relative;
    border-bottom: 1px solid rgba(245, 245, 220, 0.1);
}

.khm-chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10%;
    height: 100%;
    justify-content: flex-end;
}

.khm-chart-bar {
    width: 12px;
    background: linear-gradient(to top, #B7410E, #ff7f32);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 10%;
}

.khm-chart-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(245, 245, 220, 0.4);
    margin-top: 8px;
    text-transform: uppercase;
}

/* ==========================================================================
   9. THE TRANSFORMATION (BEFORE VS AFTER CARDS)
   ========================================================================== */
.khm-transformation {
    padding: 120px 0;
    background-color: #070707;
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-transform-intro {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(245, 245, 220, 0.7);
    max-width: 900px;
    margin-top: 10px;
}

.khm-transform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.khm-transform-box {
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.khm-transform-box.before {
    background: rgba(15, 15, 18, 0.45);
    border: 1px solid rgba(255, 95, 86, 0.15);
}

.khm-transform-box.after {
    background: rgba(183, 65, 14, 0.03);
    border: 1px solid rgba(183, 65, 14, 0.35);
    box-shadow: 0 20px 40px rgba(183, 65, 14, 0.05);
}

.khm-trans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(245, 245, 220, 0.08);
    padding-bottom: 15px;
}

.khm-trans-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.before .khm-trans-lbl { color: #ff5f56; }
.after .khm-trans-lbl { color: #ff7f32; }

.khm-trans-icon {
    font-size: 20px;
}

.khm-trans-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.khm-trans-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.khm-trans-num {
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.before .khm-trans-num {
    color: #ff5f56;
    background: rgba(255, 95, 86, 0.08);
    border: 1px solid rgba(255, 95, 86, 0.2);
}

.after .khm-trans-num {
    color: #ff7f32;
    background: rgba(183, 65, 14, 0.08);
    border: 1px solid rgba(183, 65, 14, 0.25);
}

.khm-trans-item-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.khm-trans-item-content p {
    font-size: 13.5px;
    color: rgba(245, 245, 220, 0.5);
    line-height: 1.5;
}

/* ==========================================================================
   10. BUSINESS IMPACT
   ========================================================================== */
.khm-impact {
    padding: 120px 0;
    background: linear-gradient(180deg, #070707 0%, #0b0b0e 100%);
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-impact-box {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.6) 0%, rgba(10, 10, 12, 0.3) 100%);
    border: 1px solid rgba(183, 65, 14, 0.25);
    border-radius: 30px;
    padding: 50px 60px;
    backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.khm-impact-content {
    max-width: 850px;
}

/* ==========================================================================
   11. PROJECT DELIVERABLES
   ========================================================================== */
.khm-deliverables {
    padding: 120px 0;
    background-color: #070707;
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-deliv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.khm-deliv-card {
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid rgba(245, 245, 220, 0.04);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.khm-deliv-card:hover {
    border-color: rgba(183, 65, 14, 0.25);
    background: rgba(20, 20, 25, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.khm-deliv-icon {
    font-size: 24px;
}

.khm-deliv-card span:last-child {
    font-size: 11px;
    font-weight: 600;
    color: rgba(245, 245, 220, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* ==========================================================================
   12. CLOSING SECTION & CTA
   ========================================================================== */
.khm-closing {
    padding: 60px 0;
    background: radial-gradient(100% 100% at 50% 50%, rgba(183, 65, 14, 0.08) 0%, rgba(0, 0, 0, 0) 80%);
}

.khm-closing-card {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.65) 0%, rgba(10, 10, 12, 0.35) 100%);
    border: 1px solid rgba(183, 65, 14, 0.25);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.khm-closing-title {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 25px;
}

.khm-closing-title span {
    color: #B7410E;
}

.khm-closing-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(245, 245, 220, 0.75);
    max-width: 800px;
    margin: 0 auto;
}

/* Footer CTA buttons */
.khm-footer-cta {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(245, 245, 220, 0.05);
}

.khm-cta-title {
    font-size: clamp(28px, 3.8vw, 48px);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 15px;
}

.khm-cta-sub {
    font-size: clamp(16px, 1.8vw, 20px);
    color: rgba(245, 245, 220, 0.6);
    margin-bottom: 40px;
}

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

.khm-cta-btn {
    background: linear-gradient(135deg, #B7410E 0%, #a0350a 100%);
    color: #ffffff;
    border: 1px solid rgba(183, 65, 14, 0.3);
    border-radius: 100px;
    padding: 16px 45px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(183, 65, 14, 0.2);
    transition: all 0.3s ease;
}

.khm-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(183, 65, 14, 0.4);
}

.khm-cta-btn-secondary {
    background: rgba(245, 245, 220, 0.03);
    color: beige;
    border: 1px solid rgba(245, 245, 220, 0.15);
    border-radius: 100px;
    padding: 16px 45px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.khm-cta-btn-secondary:hover {
    background: rgba(245, 245, 220, 0.08);
    border-color: beige;
}

/* ==========================================================================
   13. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .khm-hero-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .khm-hero-snapshot-grid {
        justify-content: center;
    }

    .khm-challenge-layout,
    .khm-grid-2,
    .khm-ecosystem-visualizer,
    .khm-workflow-grid,
    .khm-bi-grid,
    .khm-transform-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .khm-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .khm-modules-grid,
    .khm-deliv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .khm-journey-tracker {
        overflow-x: auto;
        padding-bottom: 20px;
    }
    
    .khm-journey-steps {
        width: 900px;
    }
    
    .khm-journey-line {
        width: 800px;
    }
}

@media (max-width: 600px) {
    .khm-metrics-grid,
    .khm-modules-grid,
    .khm-deliv-grid {
        grid-template-columns: 1fr;
    }
    
    .khm-phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .khm-stat-1 { left: -10px; }
    .khm-stat-2 { right: -10px; }
    
    .khm-impact-box,
    .khm-closing-card {
        padding: 30px 20px;
    }
}
