.nf-section {
    padding: 5rem 0;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .nf-hero-cta {
        flex-direction: row;
    }

    .nf-final-buttons {
        flex-direction: row;
    }

    /* Solution Section */
    .nf-box-content {
        width: 100%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .nf-section-label-wrapper {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktop 1399px) */
@media (max-width: 1399px) {

    .why-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .nf-industries-slider .container-lg:before {
        right: calc(100% - 44%);
    }

    .nf-industries-swiper {
        max-width: 600px;
    }

    .nf-tabs-menu {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktop 1199px) */
@media (max-width: 1199px) {

    .nf-realteam-alt-section .alt-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }

    .nf-industries-swiper {
        max-width: 500px;
    }

    .nf-industry-slide {
        height: 350px;
    }

    body a.nf-btn-large {
        padding: 0.9rem 1.5rem;
    }

    .what-col {
        padding: 42px 32px;
    }

    .closing-inner {
        gap: 30px;
    }

    .closing-cta-block {
        padding-left: 30px;
        padding-right: 30px;
    }

    .nf-arrow-circle svg {
        height: 26px;
        width: 26px;
    }
}

/* Large devices (desktop 992px) */
@media (max-width: 991px) {
    .nf-section {
        padding: 4rem 0;
    }

    .nf-autopilot-title,
    .nf-autopilot-subtitle {
        text-align: center;
        max-width: none;
    }

    .nf-autopilot-cta {
        align-items: center;
    }

    .nf-realteam-alt-section .alt-team-grid,
    .why-layout {
        grid-template-columns: 1fr;
    }

    .why-left {
        position: relative;
        top: auto;
    }

    .why-cards {
        gap: 1.5rem;
    }


    .nf-industries-swiper {
        max-width: 500px;
        margin: 0 !important;
        width: 100%;
    }

    .nf-industries-slider .container-lg:before {
        display: none;
    }

    .hero-desc {
        margin-bottom: 0;
    }

    .prob-top,
    .plat-hdr {
        margin-bottom: 32px;
    }

    .nf-arrow-circle svg {
        height: 22px;
        width: 22px;
    }
}

/* Tablet optimizations (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .nf-hero-subtitle {
        margin-bottom: 1.75rem;
    }

    .nf-hero-cta {
        gap: 1rem;
    }

    .nf-hero-title {
        margin-bottom: 1.25rem;
    }

    .nf-autopilot-title {
        margin-bottom: 1.25rem;
    }

    .nf-punchline-large {
        font-size: 2rem !important;
    }

    .nf-final-title {
        font-size: 2.75rem !important;
    }

    .nf-gradient-orb.nf-orb-1 {
        width: 15rem;
        height: 15rem;
    }

    .nf-gradient-orb.nf-orb-2 {
        width: 13rem;
        height: 13rem;
    }

    .nf-shape-1 {
        width: 5.5rem;
        height: 5.5rem;
        right: 8%;
        top: 14%;
    }

    .nf-shape-2 {
        width: 4rem;
        height: 4rem;
    }

    /* Solution Section */
    .nf-shift-section {
        padding: 3.5rem 0;
    }

    .nf-shift-section .nf-section-title {
        margin-bottom: 2.5rem;
    }

    .nf-box-content {
        width: 100%;
    }

    .nf-old-way h3,
    .nf-new-way h3 {
        margin-bottom: 1.5rem;
    }

    .nf-old-item,
    .nf-new-item {
        margin-bottom: 1rem;
    }

    .nf-highlight-box {
        padding: 2rem;
    }

    .pain-grid,
    .plat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile optimizations (max-width: 767px) */
@media (max-width: 767px) {
    body a.nf-btn-large {
        padding: 1rem 1.5rem;
    }

    /* Hero Section */
    .nf-hero {
        padding-top: 4rem;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .nf-hero-title {
        margin-bottom: 1.5rem;
    }

    .nf-hero-subtitle {
        margin-bottom: 2rem;
    }

    .nf-hero-cta {
        margin-bottom: 1rem;
    }

    body a.nf-btn-large {
        padding: 0.875rem 2rem;
    }

    /* Solution Section */
    .nf-shift-section {
        padding: 2.5rem 0;
    }

    .nf-shift-section .nf-section-title {
        margin-bottom: 2rem;
    }

    .nf-box-content {
        width: 100%;
    }

    .nf-old-way h3,
    .nf-new-way h3 {
        margin-bottom: 1.25rem;
    }

    .nf-old-item,
    .nf-new-item {
        margin-bottom: 0.75rem;
    }

    .nf-highlight-box {
        padding: 1rem 1.5rem;
    }

    .nf-highlight-box p {
        text-align: center;
    }

    /* Section Titles */
    .nf-section-title {
        margin-bottom: 1.5rem;
    }

    .nf-gradient-underline {
        bottom: -0.2rem;
    }

    .nf-section-subtitle {
        margin-top: 1rem;
    }

    /* Callout */
    /* Stat Cards */

    /* Punchline */
    .nf-punchline-small {
        font-size: 1.125rem !important;
    }

    .nf-punchline-large {
        font-size: 1.5rem !important;
    }

    .nf-punchline-content {
        padding-left: 1.5rem;
    }

    /* Section Labels */
    .nf-section-label {
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .nf-label-icon {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.65rem;
    }

    /* Shift Section */
    .nf-old-way h3,
    .nf-new-way h3 {
        margin-bottom: 1rem;
    }

    /* Final CTA */
    .nf-final-title {
        font-size: 2rem !important;
    }

    .nf-final-subtitle {
        font-size: 1.25rem !important;
    }

    /* Flow Steps */
    .nf-flow-step i {
        font-size: 1.5rem;
    }

    .nf-flow-step h3 {
        font-size: 0.8rem;
    }

    /* Control Cards */
    .nf-control-card i {
        font-size: 2rem;
    }


    /* Maturity Cards */
    .nf-maturity-card i {
        font-size: 2rem;
    }

    .nf-maturity-card p {
        font-size: 1rem !important;
    }

    /* Reduce spacing */
    .nf-section {
        padding: 2.5rem 0;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mb-md-5 {
        margin-bottom: 1.5rem !important;
    }

    /* Hide decorative elements on mobile */
    .nf-geometric-shape {
        display: none;
    }

    .nf-connecting-lines {
        opacity: 0.05;
    }


    nav {
        padding: 0 20px;
        height: 60px
    }

    .nl li:not(:last-child) {
        display: none
    }

    .sec {
        padding: 64px 20px
    }

    #hero:not() {
        padding: 32px 20px 16px;
    }

    #control {
        padding: 60px 20px
    }

    #closing {
        padding: 64px 20px
    }

    footer {
        padding: 24px 20px
    }

    .hero-wrap {
        padding: 24px 0 52px;
        gap: 40px
    }

    .what-col,
    .what-col.right {
        padding: 32px 26px
    }

    .closing-inner {
        gap: 40px
    }

    .closing-cta-block {
        padding: 36px 28px
    }

    .fw {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px
    }

    .nf-realteam-alt-section,
    .nf-industries-slider {
        padding: 4rem 0;
    }

    .nf-industry-slide {
        height: 310px;
    }

    .vtab-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .vtab-list>* {
        flex-grow: 1
    }

    .vtab-header {
        flex-shrink: 0;
        flex-basis: 100%;
        padding: 16px 20px;
    }

    .vtab-item {
        padding-top: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .vtab-idx {
        justify-content: start;
        padding: 0 16px;
        border-right: 0;
    }

    .vtab-info {
        padding: 8px 14px 14px;
    }

    .vtab-item::before {
        left: 0;
        top: auto;
        bottom: 0px;
        height: 3px;
        width: 100%;
        border-radius: 2px 2px 0 0;
        right: 0;
    }

    .agent-col-text {
        margin-bottom: 0;
    }

    .nf-workflow {
        margin-bottom: 0;
    }

    .wpcf7-spinner {
        margin: 0 !important;
        position: absolute !important;
        z-index: 2;
        right: 25%;
        transform: translateX(25%);

    }

    body #page .wpcf7-form .form-submit>p:first-child {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .nf-arrow-circle {
        width: 3rem;
        height: 3rem;
    }

    .nf-arrow-circle i {
        font-size: 1.25rem;
    }

    .proof-stats {
        flex-direction: column;
        align-items: flex-start;
    }

    
    #page .container,
    #page .container-md,
    #page .container-lg {
        padding-left: 16px;
        padding-right: 16px;
    }


}

/* Small mobile horizontal (max-width: 575.98px) */
@media (max-width: 575.98px) {
    .nf-section .nf-new-item span {
        font-size: 0.85rem;
    }

    .nf-arrow-circle svg {
        transform: rotate(90deg);
    }

    .nf-shift-section .nf-box-content {
        flex: 0;
    }

    .nf-arrow-divider {
        top: 46%;
        transform: translate(-50%, -46%);
    }

    .ctrl-list {
        padding-left: 0;
    }

    .dkpis {
        grid-template-columns: 1fr;
    }

    .pain-card {
        padding: 24px 20px;
    }

    .nf-connecting-lines {
        opacity: 0;
    }

    .hero-metrics {
        grid-template-columns: 1fr 1fr
    }

    .hm-val {
        font-size: 24px
    }

    .closing-cta-block {
        padding: 26px 8px;
        text-align: center;
    }

    .ccb-h,
    .ccb-sub,
    .ccb-note {
        margin-left: 12px;
        margin-right: 12px;
    }

    .wyc {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .ctar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ctar a {
        justify-content: center;
    }

    .vtab-list {
        flex-direction: column;
    }

    .vtab-header {
        flex-basis: auto;
    }

    .vtab-item::before {
        left: 0;
        top: 0;
        bottom: 0px;
        height: auto;
        width: 3px;
        border-radius: 0 2px 2px 0;
        right: auto;
    }

    .agents-head {
        margin-bottom: 24px;
    }

    #paths {
        display: none
    }

    body a.nf-btn-white,
    body a.nf-btn-primary,
    body a.nf-btn-secondary,
    body a.nf-btn-glass,
    body a.nf-btn-outline-light {
        gap: 0.25rem;
        padding: 0.8rem 1.25rem;
    }

    .what-col,
    .what-col.right {
        padding: 26px 20px;
    }

    #closing {
        padding: 64px 16px;
    }

    .ccb-ctas{
        align-items: center;
    }
}

/* Small mobile (max-width: 375px) */
@media (max-width: 375px) {
    body a.nf-btn-large {
        padding: 0.75rem 1rem;
        gap: 0.25rem
    }

    .nf-section-label {
        padding: 0.4rem 0.8rem;
    }

    .nf-stat-card {
        padding: 1.25rem;
    }

    .nf-stat-number {
        font-size: 1.75rem !important;
    }

    .nf-punchline-large {
        font-size: 1.25rem !important;
    }

    .nf-final-title {
        font-size: 1.75rem !important;
    }

    .nf-final-subtitle {
        font-size: 1.125rem !important;
    }

    /* Solution Section - Extra Small */
    .nf-shift-section .nf-section-title {
        margin-bottom: 1.5rem;
    }

    .nf-old-way h3,
    .nf-new-way h3 {
        margin-bottom: 1rem;
    }

    .nf-old-item,
    .nf-new-item {
        margin-bottom: 0.6rem;
    }

    .nf-highlight-box {
        padding: 1.25rem;
    }

    .nf-section .nf-new-way {
        padding: 0.8rem;
    }

    .rel-key,
    .how-line,
    .why-badge {
        padding: 16px 12px;
    }

    .plat-card {
        padding: 24px 20px;
    }

    .hero-bottom-tag {
        flex-direction: column;
    }

    .hero-bottom {
        padding-top: 0;
    }

    body a.nf-btn-white,
    body a.nf-btn-primary,
    body a.nf-btn-secondary,
    body a.nf-btn-glass,
    body a.nf-btn-outline-light {
        gap: 0.25rem;
        padding: 0.7rem 1.5rem;
    }

    .next-steps::before {
        bottom: 74px;
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .nf-hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .nf-hero-title {
        margin-bottom: 1rem;
    }

    .nf-hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .nf-hero-cta {
        margin-bottom: 2rem;
    }

    .nf-scroll-indicator {
        display: none;
    }

    /* Solution Section - Landscape */
    .nf-shift-section {
        padding: 2rem 0;
    }

    .nf-shift-section .nf-section-title {
        margin-bottom: 1.5rem;
    }

    .nf-shift-section .d-flex {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .nf-box-content {
        padding: 0.75rem;
    }

    .nf-old-way h3,
    .nf-new-way h3 {
        margin-bottom: 0.8rem;
    }

    .nf-old-item,
    .nf-new-item {
        margin-bottom: 0.5rem;
    }

    .nf-highlight-box {
        padding: 1.25rem;
    }
}



/* Print styles */
@media print {

    .nf-hero-bg,
    .nf-connecting-lines,
    .nf-geometric-shape,
    .nf-gradient-orb {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .nf-section {
        page-break-inside: avoid;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .nf-gradient-orb {
        filter: blur(80px);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .nf-gradient-orb,
    .nf-geometric-shape,
    .nf-animated-line {
        animation: none !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Currently using light theme only */
    /* Add dark mode styles here if needed */
}