/* ===================================
   RESPONSIVE HOME PAGES
   ===================================
   Comprehensive responsive design for all home page sections
   without changing existing content
*/

/* ===================================
   RESPONSIVE HERO SECTION
   =================================== */

/* Hero section container responsive improvements */
.hero-section-modern {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: none;
}

@media (max-width: 767.98px) {
    .hero-section-modern {
        min-height: 90vh;
        padding: 2rem 0;
    }
}

/* Hero background responsive improvements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70vh;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgb(54 93 248 / 71%) 0%, transparent 50%), 
        radial-gradient(circle at 80% 20%, rgb(255 253 253 / 10%) 0%, transparent 50%), 
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

@media (max-width: 767.98px) {
    .hero-background {
        height: 100vh;
        background: 
            radial-gradient(circle at 20% 80%, rgb(54 93 248 / 50%) 0%, transparent 50%), 
            radial-gradient(circle at 80% 20%, rgb(255 253 253 / 5%) 0%, transparent 50%), 
            radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    }
}

/* Hero content wrapper responsive improvements */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

@media (max-width: 767.98px) {
    .hero-content-wrapper {
        padding: 1rem;
    }
}

/* Hero main title responsive improvements */
.hero-main-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: #1f2937;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (max-width: 767.98px) {
    .hero-main-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
        text-align: center;
    }
}

/* Specific responsive font sizes for hero title */
@media (max-width: 575.98px) {
    .hero-main-title {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-main-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-main-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-main-title {
        font-size: 2.8rem !important;
        line-height: 1.2;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hero-main-title {
        font-size: 3.2rem !important;
        line-height: 1.1;
    }
}

@media (min-width: 1400px) {
    .hero-main-title {
        font-size: 3.8rem !important;
        line-height: 1.1;
    }
}

/* Hero title highlight responsive improvements */
.hero-title-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #365df8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Hero subtitle responsive improvements */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@media (max-width: 767.98px) {
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
    }
}

/* Hero buttons responsive improvements */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0.5rem;
    }
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 80px; /* Move up to avoid chat widget */
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 9998; /* Lower than chat widget */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn i {
    display: block;
    line-height: 1;
    font-size: 18px;
    color: white !important;
}

/* Ensure button shows on scroll */
#scrollToTopBtn {
    position: fixed !important;
    bottom: 80px !important; /* Move up to avoid chat widget */
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
    z-index: 9998 !important; /* Lower than chat widget */
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
}

/* Bootstrap 5 Badge Styles - Fix for missing bg-primary badge colors */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #fff !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

.badge.bg-dark {
    background-color: #212529 !important;
    color: #fff !important;
}

/* Badge hover states */
a.badge.bg-primary:hover,
a.badge.bg-primary:focus {
    background-color: #0b5ed7 !important;
    color: #fff !important;
}

a.badge.bg-secondary:hover,
a.badge.bg-secondary:focus {
    background-color: #5c636a !important;
    color: #fff !important;
}

a.badge.bg-success:hover,
a.badge.bg-success:focus {
    background-color: #146c43 !important;
    color: #fff !important;
}

a.badge.bg-danger:hover,
a.badge.bg-danger:focus {
    background-color: #b02a37 !important;
    color: #fff !important;
}

a.badge.bg-warning:hover,
a.badge.bg-warning:focus {
    background-color: #ffca2c !important;
    color: #000 !important;
}

a.badge.bg-info:hover,
a.badge.bg-info:focus {
    background-color: #3dd5f3 !important;
    color: #000 !important;
}

a.badge.bg-light:hover,
a.badge.bg-light:focus {
    background-color: #f9fafb !important;
    color: #000 !important;
}

a.badge.bg-dark:hover,
a.badge.bg-dark:focus {
    background-color: #1a1e21 !important;
    color: #fff !important;
}

/* Ensure icon is white */
#scrollToTopBtn i {
    color: white !important;
    font-size: 18px !important;
}

/* Mobile responsive scroll to top button */
@media (max-width: 767.98px) {
    .scroll-to-top-btn, #scrollToTopBtn {
        bottom: 70px !important; /* Move up to avoid chat widget on mobile */
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 16px !important;
        display: flex !important;
    }
    
    .scroll-to-top-btn:hover, #scrollToTopBtn:hover {
        transform: none; /* Disable hover effects on mobile */
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }
}

/* Tablet responsive scroll to top button */
@media (min-width: 768px) and (max-width: 991.98px) {
    .scroll-to-top-btn, #scrollToTopBtn {
        bottom: 75px !important; /* Move up to avoid chat widget on tablet */
        right: 25px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 17px !important;
        display: flex !important;
    }
}

/* ===================================
   CHAT WIDGET PROTECTION
   =================================== */

/* Ensure chat widget is not affected by our styles */
[data-id="cm9a2yhow0001lb0bsz2khdbb"],
.livechat-widget,
.chat-widget,
#livechat-widget {
    z-index: 99999 !important;
    position: fixed !important;
}

/* ===================================
   MINIMAL OVERFLOW PREVENTION
   =================================== */

/* Only prevent horizontal scrolling on body */
html, body {
    overflow-x: hidden;
}

/* Basic responsive media rules */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Ensure all videos have no background */
video {
    background: none !important;
    background-color: transparent !important;
}

/* Basic video visibility - minimal interference */
.hero-video {
    display: block;
    visibility: visible;
    opacity: 1;
    background: none !important;
    background-color: transparent !important;
}

/* ===================================
   RESPONSIVE HERO SECTION HOME
   =================================== */

/* Hero section basic responsive fixes */
.hero-section-mobile {
    overflow-x: hidden;
}

/* Hero section home container responsive improvements */
.hero-content {
    margin-top: 1rem;
    padding: 0 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    .hero-content {
        margin-top: 0.5rem;
        padding: 0 0.5rem;
        text-align: center;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Welcome badge responsive improvements */
.welcome-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: #0d6efd;
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .welcome-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
    }
}

/* Hero title responsive improvements */
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
}

/* Hero lead text responsive improvements */
.hero-content .lead {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .hero-content .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/* Service cards responsive improvements */
.service-card {
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: none;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .service-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .service-card .service-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

/* Service icon responsive improvements */
.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e3f2fd;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

@media (max-width: 767.98px) {
    .service-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto 0.5rem;
    }
}

/* Service card title responsive improvements */
.service-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .service-card h5 {
        font-size: 0.9rem;
    }
}

/* Hero CTA buttons responsive improvements */
.hero-content .d-flex {
    gap: 0.3rem;
    margin-bottom: 0rem;
    padding: 00rem 0;
}

@media (max-width: 767.98px) {
    .hero-content .d-flex {
        flex-direction: column;
        gap: 0.1rem;
        margin-bottom: 0rem;
        padding: 00rem 0;
    }
    
    .hero-content .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ===================================
   HERO VIDEO RESPONSIVE IMPROVEMENTS
   =================================== */

/* Hero video container - minimal styling */
.hero-video-container {
    overflow: hidden;
    background: none !important;
    background-color: transparent !important;
}

/* Minimal responsive video adjustments - don't interfere with original behavior */
@media (max-width: 767.98px) {
    .hero-video-container {
        /* Only prevent horizontal scroll */
        overflow: hidden;
    }
}

/* Hero section row responsive behavior */
@media (max-width: 767.98px) {
    .hero-section-mobile .row {
        flex-direction: column;
    }
    
    /* Video first on mobile */
    .hero-section-mobile .col-lg-6:first-child {
        order: 2; /* Content second */
    }
    
    .hero-section-mobile .col-lg-6:last-child {
        order: 1; /* Video first */
    }
}

/* ===================================
   RESPONSIVE APP SECTION
   =================================== */

/* App download section responsive improvements */
.app-download-section-modern {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    background-color: #f8f9fa;
}

@media (max-width: 767.98px) {
    .app-download-section-modern {
        padding: 2rem 0;
    }
}

/* Modern content section responsive improvements */
.modern-content-section {
    padding: 2rem 0;
}

@media (max-width: 767.98px) {
    .modern-content-section {
        padding: 1rem 0;
        text-align: center;
    }
}

/* Innovation badge responsive improvements */
.innovation-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .innovation-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
    }
}

/* Dynamic title responsive improvements */
.dynamic-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (max-width: 767.98px) {
    .dynamic-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: 0.5rem;
    }
}

/* Key features responsive improvements */
.key-features {
    margin-bottom: 2rem;
}

@media (max-width: 767.98px) {
    .key-features {
        margin-bottom: 1.5rem;
    }
    
    .key-features .row {
        justify-content: center;
    }
}

/* Feature badge responsive improvements */
.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
    .feature-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
    }
}

/* CTA section responsive improvements */
.cta-section {
    margin-top: 2rem;
}

@media (max-width: 767.98px) {
    .cta-section {
        margin-top: 1.5rem;
    }
    
    .cta-section .d-flex {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cta-section .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* App mockups responsive improvements */
.app-mockups {
    position: relative;
    text-align: center;
}

@media (max-width: 767.98px) {
    .app-mockups {
        margin-top: 2rem;
    }
}

/* App mockup image responsive improvements */
.app-mockups img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
    .app-mockups img {
        max-width: 90%;
    }
}

/* App badge responsive improvements */
.app-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

@media (max-width: 767.98px) {
    .app-badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
    }
}

/* App download buttons responsive improvements */
.app-download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .app-download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .app-download-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===================================
   RESPONSIVE PRODUCT SECTION
   =================================== */

/* Products section professional responsive improvements */
.products-section-professional {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .products-section-professional {
        padding: 2rem 0;
    }
}

/* Products header responsive improvements */
.products-header {
    margin-bottom: 3rem;
    position: relative;
}

@media (max-width: 767.98px) {
    .products-header {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Products badge responsive improvements */
.products-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    color: #6366f1;
    font-weight: 500;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 767.98px) {
    .products-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.75rem;
    }
}

/* Products main title responsive improvements */
.products-main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}

@media (max-width: 767.98px) {
    .products-main-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
}

/* Products subtitle responsive improvements */
.products-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .products-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
}

/* Products grid responsive improvements */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 767.98px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Product card professional responsive improvements */
.product-card-professional {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .product-card-professional {
        border-radius: 1rem;
    }
}

/* Product card content responsive improvements */
.product-card-content {
    position: relative;
    padding: 2rem 1.5rem;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    .product-card-content {
        padding: 1.5rem 1rem;
    }
}

/* Product icon container responsive improvements */
.product-icon-container {
    position: relative;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .product-icon-container {
        margin-bottom: 1rem;
    }
}

/* Product info responsive improvements */
.product-info {
    flex: 1;
    text-align: center;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .product-info {
        text-align: center;
    }
}

/* Product title responsive improvements */
.product-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .product-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
}

/* Product description responsive improvements */
.product-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .product-description {
        font-size: 0.9rem;
    }
}

/* Product features responsive improvements */
.product-features {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .product-features {
        gap: 0.5rem;
        justify-content: center;
    }
}

/* Feature item responsive improvements */
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6366f1;
}

@media (max-width: 767.98px) {
    .feature-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Product action responsive improvements */
.product-action {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .product-action {
        margin-top: 1rem;
    }
}

/* Product CTA responsive improvements */
.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    color: #4f46e5;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .product-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* ===================================
   RESPONSIVE POS SOFTWARE SECTION
   =================================== */

/* POS software section responsive improvements */
.pos-software-section {
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

@media (max-width: 767.98px) {
    .pos-software-section {
        padding: 2rem 0;
    }
}

/* Content card responsive improvements */
.content-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
    .content-card {
        border-radius: 1rem;
        padding: 1.5rem;
    }
}

/* Innovation badge in POS section responsive improvements */
.pos-software-section .innovation-badge {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .pos-software-section .innovation-badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 0.75rem;
    }
}

/* Download button container responsive improvements */
.download-btn-container {
    text-align: center;
}

@media (max-width: 767.98px) {
    .download-btn-container {
        margin-top: 1.5rem;
    }
    
    .download-btn-container .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===================================
   RESPONSIVE ANIMATIONS
   =================================== */

/* Fade in up animation responsive improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Float animation responsive improvements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 767.98px) {
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-10px);
        }
    }
}

/* ===================================
   RESPONSIVE UTILITIES FOR HOME PAGES
   =================================== */

/* Mobile-first responsive utilities */
@media (max-width: 767.98px) {
    .mobile-text-center { text-align: center !important; }
    .mobile-text-left { text-align: left !important; }
    .mobile-text-right { text-align: right !important; }
    
    .mobile-mb-0 { margin-bottom: 0 !important; }
    .mobile-mb-1 { margin-bottom: 0.25rem !important; }
    .mobile-mb-2 { margin-bottom: 0.5rem !important; }
    .mobile-mb-3 { margin-bottom: 1rem !important; }
    .mobile-mb-4 { margin-bottom: 1.5rem !important; }
    .mobile-mb-5 { margin-bottom: 3rem !important; }
    
    .mobile-mt-0 { margin-top: 0 !important; }
    .mobile-mt-1 { margin-top: 0.25rem !important; }
    .mobile-mt-2 { margin-top: 0.5rem !important; }
    .mobile-mt-3 { margin-top: 1rem !important; }
    .mobile-mt-4 { margin-top: 1.5rem !important; }
    .mobile-mt-5 { margin-top: 3rem !important; }
    
    .mobile-p-0 { padding: 0 !important; }
    .mobile-p-1 { padding: 0.25rem !important; }
    .mobile-p-2 { padding: 0.5rem !important; }
    .mobile-p-3 { padding: 1rem !important; }
    .mobile-p-4 { padding: 1.5rem !important; }
    .mobile-p-5 { padding: 3rem !important; }
    
    .mobile-w-100 { width: 100% !important; }
    .mobile-h-auto { height: auto !important; }
    
    .mobile-flex-column { flex-direction: column !important; }
    .mobile-justify-center { justify-content: center !important; }
    .mobile-align-center { align-items: center !important; }
    
    .mobile-d-none { display: none !important; }
    .mobile-d-block { display: block !important; }
    .mobile-d-flex { display: flex !important; }
    .mobile-d-inline-block { display: inline-block !important; }
}

/* Tablet responsive utilities */
@media (min-width: 768px) and (max-width: 991.98px) {
    .tablet-text-center { text-align: center !important; }
    .tablet-text-left { text-align: left !important; }
    .tablet-text-right { text-align: right !important; }
    
    .tablet-mb-0 { margin-bottom: 0 !important; }
    .tablet-mb-1 { margin-bottom: 0.25rem !important; }
    .tablet-mb-2 { margin-bottom: 0.5rem !important; }
    .tablet-mb-3 { margin-bottom: 1rem !important; }
    .tablet-mb-4 { margin-bottom: 1.5rem !important; }
    .tablet-mb-5 { margin-bottom: 3rem !important; }
    
    .tablet-w-100 { width: 100% !important; }
    .tablet-h-auto { height: auto !important; }
    
    .tablet-flex-column { flex-direction: column !important; }
    .tablet-justify-center { justify-content: center !important; }
    .tablet-align-center { align-items: center !important; }
}

/* Desktop responsive utilities */
@media (min-width: 992px) {
    .desktop-text-center { text-align: center !important; }
    .desktop-text-left { text-align: left !important; }
    .desktop-text-right { text-align: right !important; }
    
    .desktop-mb-0 { margin-bottom: 0 !important; }
    .desktop-mb-1 { margin-bottom: 0.25rem !important; }
    .desktop-mb-2 { margin-bottom: 0.5rem !important; }
    .desktop-mb-3 { margin-bottom: 1rem !important; }
    .desktop-mb-4 { margin-bottom: 1.5rem !important; }
    .desktop-mb-5 { margin-bottom: 3rem !important; }
    
    .desktop-w-100 { width: 100% !important; }
    .desktop-h-auto { height: auto !important; }
    
    .desktop-flex-row { flex-direction: row !important; }
    .desktop-justify-center { justify-content: center !important; }
    .desktop-align-center { align-items: center !important; }
}

/* ===================================
   RESPONSIVE ACCESSIBILITY
   =================================== */

/* Focus states for better accessibility */
@media (max-width: 767.98px) {
    .btn:focus,
    .form-control:focus,
    .form-select:focus {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
    }
    
    .card:focus-within {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    }
}

/* ===================================
   RESPONSIVE PERFORMANCE
   =================================== */

/* Reduce animations on mobile for better performance */
@media (max-width: 767.98px) {
    /* Disable hover effects on touch devices */
    .btn:hover,
    .card:hover,
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===================================
   RESPONSIVE PRINT STYLES
   =================================== */

@media print {
    .hero-section-modern,
    .app-download-section-modern,
    .products-section-professional,
    .pos-software-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .hero-content,
    .modern-content-section,
    .product-card-content {
        color: #000;
        background: #fff;
    }
    
    .btn {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
}

/* ===================================
   RESPONSIVE DARK MODE SUPPORT
   =================================== */

@media (prefers-color-scheme: dark) {
    @media (max-width: 767.98px) {
        .hero-content,
        .modern-content-section,
        .product-card-content {
            background-color: #1a1a1a;
            color: #fff;
        }
        
        .service-card {
            background-color: #2a2a2a;
            border-color: #444;
        }
        
        .btn {
            background-color: #2a2a2a;
            border-color: #444;
            color: #fff;
        }
    }
}

/* ===================================
   RESPONSIVE HIGH CONTRAST MODE
   =================================== */

@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
    
    .service-card {
        border-width: 2px;
    }
}

/* ===================================
   RESPONSIVE REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }
}

/* ===================================
   HERO SECTION BUTTON IMPROVEMENTS
   =================================== */

/* Enhanced button styles for hero section */
.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white;
}

.hero-buttons .btn-outline-success {
    background: transparent;
    border: 2px solid #198754;
    color: #198754;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline-success:hover {
    background: #198754;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.3);
}

/* Mobile button improvements */
@media (max-width: 767.98px) {
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
    }
    
    .hero-buttons .btn-primary:hover,
    .hero-buttons .btn-outline-success:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===================================
   SERVICE CARD IMPROVEMENTS
   =================================== */

/* Enhanced service card styling */
.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
}

/* Mobile service card improvements */
@media (max-width: 767.98px) {
    .service-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Hero section service items - 2 per row on mobile */
    .hero-section-mobile .row .col-md-6,
    .hero-section-mobile .row .col-sm-6,
    .hero-section-mobile .row .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        display: inline-block !important;
        float: left !important;
    }
    
    /* Force 2 columns per row on mobile */
    .hero-section-mobile .row {
        display: block !important;
        width: 100% !important;
    }
    
    .hero-section-mobile .row::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Reduce service card padding on mobile */
    .hero-section-mobile .service-card {
        padding: 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    /* Reduce service icon spacing on mobile */
    .hero-section-mobile .service-icon {
        margin-right: 0.5rem !important;
        margin-left: 0.25rem !important;
    }
}

/* Tablet service card improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section service items - 2 per row on tablet */
    .hero-section-mobile .row .col-md-6,
    .hero-section-mobile .row .col-sm-6,
    .hero-section-mobile .row .col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        display: inline-block !important;
        float: left !important;
    }
    
    /* Force 2 columns per row on tablet */
    .hero-section-mobile .row {
        display: block !important;
        width: 100% !important;
    }
    
    .hero-section-mobile .row::after {
        content: "";
        display: table;
        clear: both;
    }
    
    /* Reduce service card padding on tablet */
    .hero-section-mobile .service-card {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Reduce service icon spacing on tablet */
    .hero-section-mobile .service-icon {
        margin-right: 0.75rem !important;
        margin-left: 0.5rem !important;
    }
}

/* ===================================
   MOBILE BASIC RESPONSIVE FIXES
   =================================== */

/* Basic mobile responsive fixes */
@media (max-width: 767.98px) {
    /* Only prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Basic responsive text */
    .welcome-badge {
        font-size: 0.8rem;
    }
}

/* ===================================
   PARTNERS SECTION RESPONSIVE
   =================================== */

/* Partners section mobile optimizations */
@media (max-width: 767.98px) {
    .our-partners {
        padding: 2rem 0;
        overflow-x: hidden;
    }
    
    .our-partners .container {
        padding: 0 1rem;
    }
    
    .our-partners .row {
        margin: 0;
    }
    
    .our-partners .col-lg-6 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    
    .our-partners .dynamic-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .our-partners .sub-heading {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        padding: 0 0.5rem;
    }
    
    .our-partners .card {
        margin: 1rem 0;
        border-radius: 0.5rem;
    }
    
    .our-partners .card-body {
        padding: 1rem;
    }
    
    .our-partners .sliding-gallery-container {
        padding: 0.5rem 0;
    }
    
    .our-partners .image-item {
        width: 45px !important;
        height: 45px !important;
        margin: 0 3px;
    }
    
    .our-partners .image-item img {
        width: 45px !important;
        height: 45px !important;
        border-width: 1px;
    }
}

/* ===================================
   TABLET BASIC RESPONSIVE FIXES
   =================================== */

/* Basic tablet responsive fixes */
@media (min-width: 768px) and (max-width: 1199.98px) {
    /* Only prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
}

/* ===================================
   TABLET HEADER MOBILE BEHAVIOR
   =================================== */

/* Make tablet show mobile header behavior */
@media (min-width: 768px) and (max-width: 1199.98px) {
    /* Header responsive behavior for tablet */
    .navbar-toggler {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.1);
        padding: 0.25rem 0.5rem;
        position: relative !important;
        right: auto !important;
        z-index: 1002;
    }
    
    /* Override conflicting SCSS styles for tablet */
    .navbar-collapse {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }
    
    /* Hide cross-button by default */
    .cross-button {
        display: none !important;
        position: absolute;
        right: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        border: none;
        background-color: transparent;
        cursor: pointer;
        z-index: 1003;
    }
    
    /* Show cross-button only when menu is open */
    .navbar-collapse.show .cross-button {
        display: block !important;
    }
    
    /* Cross-button line styling for tablet */
    .cross-button .line {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #374151;
        transform-origin: center;
        transition: transform 0.3s ease;
    }
    
    .cross-button .line:first-child {
        transform: translateY(-50%) rotate(0deg);
    }
    
    .cross-button .line:last-child {
        transform: translateY(-50%) rotate(0deg);
    }
    
    /* Cross-button hover effect for tablet */
    .cross-button:hover .line {
        background-color: #007bff;
    }
    
    /* Let Bootstrap handle the collapse behavior */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    /* Hero buttons should be visible on tablet */
    
    /* Tablet header styling */
    .header-bar {
        padding: 0.5rem 0;
    }
    
    .logo-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logo {
        flex: 1;
        min-width: 120px;
    }
    
    .mobile-login {
        flex: 0 0 auto;
    }
}

/* Partners section tablet optimizations */
@media (min-width: 768px) and (max-width: 991.98px) {
    .our-partners {
        padding: 2.5rem 0;
    }
    
    .our-partners .dynamic-title {
        font-size: 2.2rem;
    }
    
    .our-partners .sub-heading {
        font-size: 1.05rem;
    }
    
    .our-partners .image-item {
        width: 60px !important;
        height: 60px !important;
        margin: 0 5px;
    }
    
    .our-partners .image-item img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Partners section desktop optimizations */
@media (min-width: 1200px) {
    .our-partners {
        padding: 4rem 0;
    }
    
    .our-partners .dynamic-title {
        font-size: 3rem;
    }
    
    .our-partners .sub-heading {
        font-size: 1.2rem;
    }
    
    .our-partners .image-item {
        width: 80px !important;
        height: 80px !important;
        margin: 0 8px;
    }
    
    .our-partners .image-item img {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ===================================
   HEADER DESIGN IMPROVEMENTS
   =================================== */

/* General header styling */
.header-bar {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand .logo {
    max-height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
}

.navbar-nav .nav-link.link-active {
    color: #007bff !important;
    font-weight: 600;
}

/* Partner Login Button Positioning */
.navbar-collapse .d-none.d-xl-block,
.navbar-collapse .d-xl-none {
    margin-left: auto;
}

.navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar-nav {
    flex: 1;
    justify-content: center;
    display: flex;
}

/* Ensure login button stays on the right */
.navbar-collapse .d-none.d-xl-block {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ===================================
   MOBILE NAVBAR FIXES
   =================================== */

/* Mobile navbar toggler fixes */
@media (max-width: 767.98px) {
    /* Ensure navbar toggler is visible on mobile */
    .navbar-toggler {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.1);
        padding: 0.25rem 0.5rem;
        position: relative !important;
        right: auto !important;
        z-index: 1002;
    }
    
    /* Override conflicting SCSS styles */
    .navbar-collapse {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: auto !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }
    
    /* Hide cross-button by default */
    .cross-button {
        display: none !important;
        position: absolute;
        right: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        border: none;
        background-color: transparent;
        cursor: pointer;
        z-index: 1003;
    }
    
    /* Show cross-button only when menu is open */
    .navbar-collapse.show .cross-button {
        display: block !important;
    }
    
    /* Cross-button line styling */
    .cross-button .line {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #374151;
        transform-origin: center;
        transition: transform 0.3s ease;
    }
    
    .cross-button .line:first-child {
        transform: translateY(-50%) rotate(0deg);
    }
    
    .cross-button .line:last-child {
        transform: translateY(-50%) rotate(0deg);
    }
    
    /* Cross-button hover effect */
    .cross-button:hover .line {
        background-color: #007bff;
    }
    
    /* Ensure navbar collapse works properly on mobile */
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    /* Ensure proper spacing for mobile navbar */
    .navbar-nav {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    /* Mobile login button positioning */
    .navbar-collapse .d-xl-none {
        margin-top: 1rem;
        text-align: center;
    }
}
