/* ===================================
   RESPONSIVE - 4 Breakpoints Only
   sm: 576px | md: 768px | lg: 992px | xl: 1200px
   =================================== */

/* ===================================
   BREAKPOINT 1: sm (576px) - Mobile
   =================================== */

   @media (max-width: 575.98px) {
    /* Headings: smaller on phones */
    .hero-title {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    }

    .insights-section h2 {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }

    .about-title {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }

    .about-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    }

    .about-kicker {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .clients-title,
    .products-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .pikasa-title {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }

    .pikasa-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .pikasa-content-title {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .core-products-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .core-products-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    }

    .plans-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .plans-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .final-cta-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .final-cta-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .about-card-title {
        font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    }

    .footer-title {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
    }

    /* Footer: better on phones */
    .footer-section {
        padding: var(--space-lg) var(--space-md);
        border-width: var(--space-md);
    }

    .footer-box {
        padding: var(--space-xl) var(--space-lg);
    }

    .footer-logo {
        height: 36px;
    }

    .footer-text {
        font-size: clamp(0.85rem, 2.2vw, 0.95rem);
        max-width: 100%;
    }

    .footer-content .row > div {
        margin-bottom: var(--space-lg);
    }

    /* Footer phones: logo/text/social top, Products + Products + Legal in one row */
    .footer-content .row > div:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-content .row > div:nth-child(2),
    .footer-content .row > div:nth-child(3),
    .footer-content .row > div:nth-child(4) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .footer-title {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
        margin-bottom: var(--space-sm);
    }

    .footer-links a {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }

    .footer-links li {
        margin-bottom: var(--space-xs);
    }

    .footer-social .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .footer-bottom {
        margin-top: var(--space-xl);
        padding-top: var(--space-md);
        font-size: clamp(0.75rem, 2vw, 0.85rem);
    }

    .carousel-item h3,
    .testimonial-card h3 {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    /* About tall grid: 2 per row on phones */
    .about-tall-grid > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .about-card-visual img {
        max-width: 90px;
    }

    /* Products section: vector, names, description, decorative lines */
    .core-products-header {
        margin-bottom: var(--space-sm);
    }

    .product-icon-wrapper {
        margin: var(--space-xs) 0;
    }

    .product-vector-icon {
        width: 22px;
        height: 22px;
    }

    .product-name {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }

    .product-description {
        font-size: clamp(0.8rem, 2.2vw, 0.95rem);
        line-height: 1.5;
    }

    .product-description-wrapper {
        min-height: 60px;
        margin-top: var(--space-lg);
        padding: 0 var(--space-md);
    }

    .carousel-bg-decoration {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    .carousel-bg-decoration::before {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        background-position: center 100px;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }

    .carousel-wrapper {
        padding: var(--space-lg) var(--space-md);
    }

    .carousel-wrapper::before {
        top: 18%;
        height: 1px;
        opacity: 0.6;
    }

    .carousel-wrapper::after {
        top: 28%;
        height: 1px;
        opacity: 0.6;
    }

    .laptop-carousel::before {
        top: 42%;
        height: 1px;
        opacity: 0.6;
    }

    .laptop-carousel::after {
        top: 72%;
        height: 1px;
        opacity: 0.6;
    }

    .product-name-wrapper {
        min-height: 32px;
        margin-top: var(--space-sm);
    }

    .carousel-dots {
        bottom: -20px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-dot.active {
        width: 8px;
    }

    /* Our Clients: 5 rows x 3 cards on mobile */
    .clients-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: var(--space-sm);
    }

    .clients-grid-container {
        padding: 0 var(--space-md);
    }

    .client-card {
        padding: 10px 8px;
        min-height: 60px;
        border-radius: var(--radius-sm);
    }

    .client-logo {
        max-width: 100%;
        max-height: 45px;
        object-fit: contain;
    }

    .clients-section {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    /* Insights: 2 cards per row, smaller cards on mobile */
    .insights-section::before {
        width: 100%;
        max-width: 100%;
        min-height: 130%;
    }

    .insights-section .row > div {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .insight-card {
        padding: var(--space-sm);
        min-height: 95px;
        border-radius: var(--radius-sm);
    }

    .insight-card h4 {
        font-size: clamp(0.7rem, 2.5vw, 0.85rem);
        margin-bottom: 2px;
    }

    .insight-card p {
        font-size: clamp(0.6rem, 2vw, 0.75rem);
        margin-bottom: var(--space-xs);
        line-height: 1.3;
    }

    .insight-card-icon {
        width: 24px;
        height: 24px;
    }

    .insight-card-icon img {
        max-width: 24px;
    }

    /* Table ↔ Carousel: Show carousel, hide table */
    .about-stats-wrapper .table-responsive {
        display: none !important;
    }

    .stats-carousel-wrapper {
        display: block !important;
    }

    .stats-carousel-item {
        min-width: calc(100% / 3);
        width: calc(100% / 3);
        padding: 0;
    }

    /* Stats carousel: text row larger, number row smaller, full text visible */
    .stats-carousel-track {
        align-items: stretch;
        gap: 0;
    }

    .stats-carousel-item {
        display: flex;
        min-height: 200px;
    }

    .stats-carousel-item .stat-col {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 100%;
    }

    .stats-carousel-item .stat-text-box {
        min-height: 140px;
        flex: 1;
        margin-top: 0;
    }

    .stats-carousel-item .stat-number-box {
        min-height: 50px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .stats-carousel-item .stat-text-cell {
        min-height: auto;
        padding: 10px 8px;
        overflow: visible;
    }

    .stats-carousel-item .stat-title {
        font-size: clamp(0.8rem, 2.2vw, 1rem);
    }

    .stats-carousel-item .stat-description {
        font-size: clamp(0.7rem, 1.8vw, 0.9rem);
        display: block;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    .stats-carousel-item .stat-number-cell {
        min-height: 45px;
        padding: 8px;
    }

    .stats-carousel-item .stat-number {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        line-height: 1;
    }

    /* Mobile navbar */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: var(--space-lg);
        border-radius: var(--radius-md);
        margin-top: var(--space-sm);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-link {
        padding: var(--space-md);
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    /* Pikasa: tabs in one row on phones */
    .pikasa-tabs {
        flex-wrap: nowrap;
        gap: var(--space-xs);
        justify-content: space-between;
    }

    .pikasa-tab {
        font-size: clamp(0.75rem, 2.2vw, 0.9rem);
        padding: var(--space-xs) 0;
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    /* Layout: Pikasa column stack */
    .pikasa-tab-content .row {
        flex-direction: column !important;
    }

    .pikasa-tab-content .col-lg-6 {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .pikasa-tab-content .order-1,
    .pikasa-tab-content .order-2 {
        order: unset !important;
    }
}

/* ===================================
   BREAKPOINT 2: md (768px) - Tablet
   =================================== */

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Headings: smaller on tablets */
    .hero-title {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
    }

    .insights-section h2 {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    }

    .about-title {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    }

    .about-subtitle {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }

    .about-kicker {
        font-size: clamp(1.15rem, 3.5vw, 1.35rem);
    }

    .clients-title,
    .products-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .pikasa-title {
        font-size: clamp(1.35rem, 4.5vw, 1.65rem);
    }

    .pikasa-subtitle {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }

    .pikasa-content-title {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }

    .core-products-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .core-products-subtitle {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }

    .plans-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .plans-subtitle {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    }

    .final-cta-title {
        font-size: clamp(1.4rem, 4.5vw, 1.75rem);
    }

    .final-cta-subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    }

    .about-card-title {
        font-size: clamp(1rem, 2.8vw, 1.15rem);
    }

    .footer-title {
        font-size: clamp(1.1rem, 3vw, 1.25rem);
    }

    .carousel-item h3,
    .testimonial-card h3 {
        font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    }

    .insight-card h4 {
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }

    .about-card-visual img {
        max-width: 130px;
    }

    /* Insights: 3 cards per row, shorter cards, frame */
    .insights-section::before {
        width: 100%;
        max-width: 100%;
        min-height: 120%;
    }

    .insight-card {
        min-height: 100px;
    }

    .insights-section .row > div {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .about-stats-wrapper .table-responsive {
        display: none !important;
    }

    .stats-carousel-wrapper {
        display: block !important;
    }

    .stats-carousel-item {
        min-width: calc(100% / 5);
        width: calc(100% / 5);
        padding: 0;
    }

    /* Stats carousel: text row larger, number row smaller */
    .stats-carousel-track {
        align-items: stretch;
        gap: 0;
    }

    .stats-carousel-item {
        display: flex;
        min-height: 220px;
    }

    .stats-carousel-item .stat-col {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 100%;
    }

    .stats-carousel-item .stat-text-box {
        min-height: 150px;
        flex: 1;
        margin-top: 0;
    }

    .stats-carousel-item .stat-number-box {
        min-height: 55px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .stats-carousel-item .stat-text-cell {
        min-height: auto;
        padding: 12px 10px;
        overflow: visible;
    }

    .stats-carousel-item .stat-title {
        font-size: clamp(0.85rem, 2vw, 1.05rem);
    }

    .stats-carousel-item .stat-description {
        font-size: clamp(0.75rem, 1.8vw, 0.95rem);
        display: block;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    .stats-carousel-item .stat-number-cell {
        min-height: 48px;
        padding: 10px;
    }

    .stats-carousel-item .stat-number {
        font-size: clamp(1.5rem, 4vw, 1.75rem);
        line-height: 1;
    }

    /* Footer: logo/text/social top, Products + Legal in one row */
    .footer-content .row > div:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-content .row > div:nth-child(2),
    .footer-content .row > div:nth-child(3),
    .footer-content .row > div:nth-child(4) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .footer-box {
        padding: var(--space-2xl) var(--space-xl);
    }

    .footer-logo {
        height: 40px;
    }

    .footer-text {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .footer-title {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    }

    /* Pikasa: text left, images right on tablets */
    .pikasa-tab-content .row {
        flex-direction: row !important;
    }

    .pikasa-tab-content .col-lg-6 {
        width: 50% !important;
        flex: 0 0 50%;
    }

    .pikasa-tab-content .order-2.order-lg-1 {
        order: 1 !important;
    }

    .pikasa-tab-content .order-1.order-lg-2 {
        order: 2 !important;
    }

    /* Our Clients: 4 columns on tablet */
    .clients-grid-wrapper {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: var(--space-md);
    }

    .client-card {
        min-height: 85px;
        padding: 14px 12px;
    }

    .client-logo {
        max-height: 70px;
    }
}

/* ===================================
   BREAKPOINT 3: lg (992px) - Desktop
   Table visible, Carousel hidden
   =================================== */

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Headings: smaller on tablets (768-992px) */
    .hero-title {
        font-size: clamp(1.35rem, 3.8vw, 1.6rem);
    }

    .insights-section h2 {
        font-size: clamp(1.45rem, 4vw, 1.75rem);
    }

    .about-title {
        font-size: clamp(1.45rem, 4vw, 1.75rem);
    }

    .about-subtitle {
        font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    }

    .about-kicker {
        font-size: clamp(1.2rem, 3.2vw, 1.4rem);
    }

    .clients-title,
    .products-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .pikasa-title {
        font-size: clamp(1.45rem, 4vw, 1.75rem);
    }

    .pikasa-subtitle {
        font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    }

    .pikasa-content-title {
        font-size: clamp(1.15rem, 2.8vw, 1.35rem);
    }

    .core-products-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .core-products-subtitle {
        font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    }

    .plans-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .plans-subtitle {
        font-size: clamp(1.15rem, 3.2vw, 1.35rem);
    }

    .final-cta-title {
        font-size: clamp(1.5rem, 4vw, 1.9rem);
    }

    .final-cta-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.15rem);
    }

    .about-card-title {
        font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    }

    .footer-title {
        font-size: clamp(1.15rem, 2.8vw, 1.3rem);
    }

    /* Footer tablets: logo/text/social top, Products + Products + Legal in one row */
    .footer-content .row > div:first-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-content .row > div:nth-child(2),
    .footer-content .row > div:nth-child(3),
    .footer-content .row > div:nth-child(4) {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .carousel-item h3,
    .testimonial-card h3 {
        font-size: clamp(1.1rem, 2.6vw, 1.25rem);
    }

    .insight-card h4 {
        font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    }

    .about-card-visual img {
        max-width: 150px;
    }

    /* Insights: frame + 3 cards per row, shorter cards */
    .insights-section::before {
        width: 100%;
        max-width: 100%;
        min-height: 120%;
    }

    .insight-card {
        min-height: 100px;
    }

    .about-stats-wrapper .table-responsive {
        display: none !important;
    }

    .stats-carousel-wrapper {
        display: block !important;
    }

    .stats-carousel-item {
        min-width: calc(100% / 5);
        width: calc(100% / 5);
        padding: 0;
    }

    /* Stats carousel: text row larger, number row smaller */
    .stats-carousel-track {
        align-items: stretch;
        gap: 0;
    }

    .stats-carousel-item {
        display: flex;
        min-height: 230px;
    }

    .stats-carousel-item .stat-col {
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 100%;
    }

    .stats-carousel-item .stat-text-box {
        min-height: 155px;
        flex: 1;
        margin-top: 0;
    }

    .stats-carousel-item .stat-number-box {
        min-height: 55px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .stats-carousel-item .stat-text-cell {
        min-height: auto;
        padding: 12px 10px;
        overflow: visible;
    }

    .stats-carousel-item .stat-title {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    .stats-carousel-item .stat-description {
        font-size: clamp(0.8rem, 1.8vw, 1rem);
        display: block;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    .stats-carousel-item .stat-number-cell {
        min-height: 48px;
        padding: 10px;
    }

    .stats-carousel-item .stat-number {
        font-size: clamp(1.5rem, 4vw, 1.75rem);
        line-height: 1;
    }

    /* Pikasa: text left, images right on tablets */
    .pikasa-tab-content .row {
        flex-direction: row !important;
    }

    .pikasa-tab-content .col-lg-6 {
        width: 50% !important;
        flex: 0 0 50%;
    }

    .pikasa-tab-content .order-2.order-lg-1 {
        order: 1 !important;
    }

    .pikasa-tab-content .order-1.order-lg-2 {
        order: 2 !important;
    }

    /* Our Clients: 5 columns on larger tablets */
    .clients-grid-wrapper {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .client-card {
        min-height: 95px;
    }

    .client-logo {
        max-height: 80px;
    }
}

/* ===================================
   BREAKPOINT 4: xl (992px+) - Full Desktop
   Table visible, Carousel hidden
   =================================== */

@media (min-width: 992px) {
    .about-stats-wrapper .table-responsive {
        display: block !important;
    }
    .testimonial-text{
        font: 16px;
    }
    .stats-carousel-wrapper {
        display: none !important;
    }

    /* Our Clients: larger logos on laptops */
    .client-card {
        min-height: clamp(90px, 14vw, 130px);
    }

    .client-logo {
        max-height: clamp(70px, 12vw, 140px);
    }
}