.collapsed-content {
    max-height: 350px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}
.expanded-content {
    max-height: none;
}
.toggle-content-btn {
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 6px;
}

/* Floating Demo Button */
.floating-demo-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    font-size: 13px;
    padding: 8px 16px;
    font-weight: 500;
    width: fit-content;
    min-width: auto;
}
.floating-demo-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%) translateY(-2px);
}
@media (max-width: 768px) {
    .floating-demo-btn {
        bottom: 15px;
        font-size: 12px;
        padding: 6px 14px;
    }
}


.landing_notification_message_div p{
    font-size: 0.875rem;
    padding: 0px !important;
    margin-bottom: 0px !important;
    color: black;
    font-weight: 500;
}
.landing_notification_message_div a{
    color: blue;
}

/* Newsletter Modal Styles */
#newsLetterModal .modal-dialog {
    max-width: 550px;
}

.newsletter-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 30px;
    position: relative;
}

.newsletter-modal-header-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.newsletter-modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    color: white;
}

.newsletter-modal-header .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.newsletter-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 5px 0 0 0;
    line-height: 1.4;
}

.newsletter-modal-header .btn-close {
    opacity: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.newsletter-modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    opacity: 1;
}

.newsletter-modal-header .btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
    opacity: 1;
}

.newsletter-modal-body {
    padding: 35px 30px 20px;
    background: #fff;
}

.newsletter-form {
    width: 100%;
}

.newsletter-form .form-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.newsletter-form .form-label .text-danger {
    color: #dc3545;
}

.newsletter-input {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    height: 48px;
}

.newsletter-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.newsletter-input::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

.newsletter-input.is-invalid {
    border-color: #dc3545;
}

.newsletter-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.newsletter-form .invalid-feedback {
    font-size: 13px;
    margin-top: 5px;
}

.newsletter-captcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.newsletter-error-message {
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

.newsletter-modal-footer {
    border: none;
    padding: 0;
    margin-top: 25px;
}

.newsletter-subscribe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.newsletter-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
}

.newsletter-subscribe-btn:active {
    transform: translateY(0);
}

.newsletter-subscribe-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.5);
}

.newsletter-subscribe-btn i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 576px) {
    #newsLetterModal .modal-dialog {
        margin: 15px;
        max-width: calc(100% - 30px);
    }

    .newsletter-modal-header {
        padding: 25px 20px;
    }

    .newsletter-modal-body {
        padding: 25px 20px 15px;
    }

    .newsletter-modal-header .modal-title {
        font-size: 20px;
    }

    .newsletter-modal-subtitle {
        font-size: 13px;
    }

    .newsletter-modal-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .newsletter-input {
        height: 44px;
        font-size: 14px;
    }

    .newsletter-subscribe-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* Prevent images/videos from loading when hidden on mobile */
@media (max-width: 1199.98px) {
    .desktop-only-media {
        content-visibility: hidden;
        contain-intrinsic-size: 0;
        display: none !important;
    }
}

/* Mobile responsive improvements */
@media (max-width: 767.98px) {
    .banner_section h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .banner_section h5 {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    .section_title h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .section_title h3 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    .app_text p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .quote_block_custom h2 {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    /* Reduce padding for mobile */
    .app_solution_section .row {
        padding: 2rem 1rem !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablet responsive improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    .banner_section h1 {
        font-size: 2rem !important;
    }

    .banner_section h5 {
        font-size: 1rem !important;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy load fade-in animation */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* Improve rendering performance */
.app_solution_section {
    will-change: auto;
    contain: layout style paint;
}

/* Optimize scrolling */
.app_solution_section_group {
    -webkit-overflow-scrolling: touch;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Touch optimization for mobile */
.btn,
a,
button,
[role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Improve button hit areas on mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }

    .nav-link {
        padding: 12px 16px !important;
    }
}

/* Prevent text selection on buttons */
.btn,
button {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Optimize images for retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Fix iOS momentum scrolling */
body,
.modal {
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on input focus on iOS */
@media screen and (max-width: 767.98px) {
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Improve mobile navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading spinner for lazy images */
img[loading="lazy"]:not(.loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    header {
        padding-top: max(0px, env(safe-area-inset-top));
    }

    footer {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

/* Performance hint for complex sections */
.app_solution_section_group section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Optimize testimonial section */
.testimonial_section {
    will-change: auto;
}

/* Fix CLS (Cumulative Layout Shift) */
img:not([width]):not([height]) {
    aspect-ratio: attr(width) / attr(height);
}

/* Optimize FAQ accordion */
.accordion {
    contain: layout style;
}

/* Optimize form inputs on mobile */
@media (max-width: 767.98px) {
    .form-control,
    .form-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* Better focus states for accessibility */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}


/* Fix section spacing to prevent overlap */
.testimonial_section {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    clear: both;
}

.faq_section {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    clear: both;
}

/* Ensure testimonial slider is visible */
#testimonial_slider {
    min-height: 300px;
}

/* Fix owl carousel visibility */
.owl-carousel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

/* Ensure proper spacing between major sections */
section {
    position: relative;
    z-index: 1;
}

section + section {
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .testimonial_section {
        margin-top: 5rem;
        margin-bottom: 5rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .faq_section {
        margin-top: 5rem;
        margin-bottom: 3rem;
        padding-top: 3rem;
    }
}
