/* Mobile Navigation - Clean Implementation */

/* Hide hamburger on desktop by default */
.hamburger-menu {
    display: none;
}

/* Mobile styles for screens 1280px and below */
@media (max-width: 1280px) {

    /* Show hamburger menu */
    .hamburger-menu {
        display: block !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        /* Removed fixed positioning to allow flex flow in header */
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hide desktop nav elements */
    .nav-links,
    .nav-login,
    .btn-nav {
        display: none !important;
    }

    /* Adjust navbar for mobile */
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 5px;
        /* Reduced from 20px to Move Logo Left */
        background: transparent;
        z-index: 99998;
    }

    /* .logo img { removed to keep size consistent } */

    .hero-content-center {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .hero-badge {
        margin-bottom: 15px !important;
    }

    .hero-title-static {
        margin-bottom: 15px !important;
    }

    .hero-subtext {
        margin-bottom: 20px !important;
    }
}

/* Reduce gap between video and next section */
@media (max-width: 768px) {
    .zoom-section {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 0 !important;
        margin-bottom: 20px !important;
    }

    .zoom-wrapper {
        margin-bottom: 0 !important;
    }

    .stats-strip {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }

    .stats-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* Stats responsive styling handled in the block below */






/* Stats Section 2x2 Grid on Mobile & Tablet */
@media (max-width: 1280px) {
    .stats-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 20px !important;
        padding: 40px 20px !important;
        align-items: center !important;
        justify-items: center !important;
        width: 100% !important;
        max-width: 800px !important;
        /* Keeps it centered and not too spread out on tablet */
        margin: 0 auto !important;
    }

    .stat-block {
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .stat-number {
        font-size: 2.2rem !important;
        margin-bottom: 8px !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
        letter-spacing: 0.05em !important;
    }

    .stat-line {
        display: none !important;
    }
}

/* Bento Section Fixes for Mobile */
@media (max-width: 768px) {
    .bento-section {
        margin: 40px 15px !important;
        padding: 60px 20px !important;
        background: #f8f9fb !important;
        /* Light cool grey for contrast against white cards */
        border-radius: 30px !important;
    }

    .bento-header h2 {
        font-size: 2.2rem !important;
        margin-bottom: 15px !important;
    }

    .bento-grid {
        gap: 20px !important;
    }

    .bento-card {
        padding: 25px !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        min-height: auto !important;
    }

    /* ROI Chart Mobile Fix */
    .roi-chart {
        padding: 10px 10px 40px 35px !important;
        height: 220px !important;
    }

    .chart-x-axis {
        bottom: -25px !important;
        left: 35px !important;
    }

    .chart-x-axis span {
        font-size: 0.65rem !important;
    }

    /* Security Image alignment */
    .security-img {
        width: 85% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: translateY(20px) !important;
    }

    /* Reliability Metrics */
    .reliability-metrics {
        gap: 15px !important;
    }

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


/* Refine ROI Chart elements for Mobile */
@media (max-width: 768px) {
    .revenue-badge {
        left: 50% !important;
        top: 0 !important;
        transform: translateX(-50%) !important;
        padding: 5px 12px !important;
        width: fit-content !important;
    }

    .badge-value {
        font-size: 0.9rem !important;
    }

    .badge-label {
        font-size: 0.7rem !important;
    }

    .revenue-svg {
        left: 35px !important;
        width: calc(100% - 50px) !important;
    }

    .chart-grid {
        left: 35px !important;
        right: 15px !important;
    }
}


/* Bento Header & CTA Mobile Refinement */
@media (max-width: 768px) {
    .bento-header {
        margin-bottom: 40px !important;
    }

    .bento-header h2 {
        font-size: 1.8rem !important;
        /* Slightly smaller for better fit */
        line-height: 1.2 !important;
    }

    .bento-header p {
        font-size: 1rem !important;
        opacity: 0.8 !important;
    }

    .bento-cta-wrapper {
        margin-top: 60px !important;
        padding: 60px 25px !important;
        border-radius: 24px !important;
        gap: 25px !important;
    }

    .bento-cta-text {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
}


/* Fix squashed chart labels on mobile */
@media (max-width: 768px) {
    .chart-x-axis {
        display: flex !important;
        justify-content: space-between !important;
        width: calc(100% - 40px) !important;
    }

    .chart-x-axis span {
        position: relative !important;
        transform: none !important;
        text-align: center !important;
        flex: 1 !important;
    }
}


/* Framework Section Center Alignment for Mobile */
@media (max-width: 768px) {
    .process-header {
        text-align: center !important;
        margin-bottom: 50px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .process-headline {
        transform: none !important;
        /* Crucial: removes the translateX(-100px) from main CSS */
        text-align: center !important;
        width: 100% !important;
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        letter-spacing: -1px !important;
    }

    /* Stack steps vertically on mobile */
    .process-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
        margin-bottom: 40px !important;
    }

    .step-indicator {
        margin-bottom: 5px !important;
    }

    .step-line {
        display: none !important;
        /* Clean up vertical space */
    }

    .process-details h3 {
        margin-bottom: 8px !important;
    }
}

/* World Map Mobile Fix */
@media (max-width: 768px) {
    .world-map-section {
        padding: 50px 0 !important;
        /* Full width feel */
    }

    .map-header {
        padding: 0 20px !important;
        margin-bottom: 30px !important;
    }

    .map-header h2 {
        font-size: 2rem !important;
    }

    .world-map-container {
        aspect-ratio: 1.1 / 1 !important;
        /* Taller on mobile to show more map */
        border-radius: 0 !important;
        width: 100% !important;
    }

    .world-map-bg {
        opacity: 0.8 !important;
        /* Make it more visible */
    }
}

/* Hide flashy points (SVG overlay) on mobile */
@media (max-width: 768px) {
    .world-map-svg {
        display: none !important;
    }
}


/* Order: Title -> Form -> Cards on Mobile */
@media (max-width: 1024px) {
    .contact-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    .contact-left {
        display: contents !important;
        /* Allows internal items to be ordered relative to form */
    }

    .contact-badge-pill {
        order: 1 !important;
        width: fit-content !important;
        margin: 0 auto 25px !important;
    }

    .split-title {
        order: 2 !important;
    }

    .split-desc {
        order: 3 !important;
    }

    .contact-right {
        order: 4 !important;
        width: 100% !important;
        margin-bottom: 40px !important;
    }

    .contact-cards-stack {
        order: 5 !important;
        width: 100% !important;
    }
}


/* Centering refinement for Contact Info on Mobile */
@media (max-width: 1024px) {

    .split-title,
    .split-desc {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .contact-badge-pill {
        justify-content: center !important;
    }
}