/* ItWays CRM Landing Page - Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --accent-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    --gradient-secondary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --shadow-light: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Hero button specific hover effect */
.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.hero-buttons .btn-outline-dark:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background-color: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

/* Header logo size and alignment */
.navbar-brand img {
  height: 48px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  margin-right: 1rem;
  transition: height 0.2s, max-width 0.2s;
  display: block;
}

@media (max-width: 1200px) {
  .navbar-brand img {
    height: 40px;
    max-width: 140px;
  }
}
@media (max-width: 992px) {
  .navbar-brand img {
    height: 36px;
    max-width: 120px;
  }
}
@media (max-width: 768px) {
  .navbar-brand img {
    height: 32px;
    max-width: 100px;
    margin-bottom: 0.5rem;
  }
  .navbar .container {
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 576px) {
  .navbar-brand img {
    height: 24px;
    max-width: 70px;
  }
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 0.5rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
/* legacy hero-section retained for backward compatibility */
.hero-section { background: transparent; }

/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dee2e6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
    z-index: 1;
} */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.floating-card {
    position: absolute;
    z-index: 3;
}

.floating-card.card-1 {
    top: 20%;
    left: -10%;
}

.floating-card.card-2 {
    bottom: 20%;
    right: -10%;
}

.floating-card .card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* Multi-Device Dashboard Styles */
.multi-device-dashboard {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    min-height: 400px;
}

.device {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.device:hover {
    transform: translateY(-10px);
}

.device.desktop {
    width: 300px;
    height: 200px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 8px;
    position: relative;
}

.device.desktop::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 10px;
    background: #34495e;
    border-radius: 0 0 8px 8px;
}

.device.tablet {
    width: 120px;
    height: 160px;
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border-radius: 12px;
    position: relative;
    top: -20px;
}

.device.mobile {
    width: 80px;
    height: 140px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 16px;
    position: relative;
    top: 20px;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: inherit;
    padding: 8px;
    overflow: hidden;
}

/* Desktop Dashboard Content */
.dashboard-content {
    height: 100%;
    background: white;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-header h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

.growth-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #28a745;
    font-weight: 600;
}

.dashboard-stats {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 4px;
}

.stat-number {
    font-size: 12px;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

.stat-label {
    font-size: 8px;
    color: #6c757d;
    display: block;
}

.growth-chart {
    flex: 1;
    display: flex;
    align-items: end;
    gap: 4px;
    padding: 8px 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #007bff, #0056b3);
    border-radius: 2px 2px 0 0;
    min-height: 20px;
    animation: chartGrow 2s ease-out;
}

@keyframes chartGrow {
    from { height: 0; }
    to { height: var(--height); }
}

/* Animation for devices */
.device {
    animation: deviceFloat 3s ease-in-out infinite;
}

.device.desktop {
    animation-delay: 0s;
}

.device.tablet {
    animation-delay: 0.5s;
}

.device.mobile {
    animation-delay: 1s;
}

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse animation for growth indicator */
.growth-indicator {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Tablet Dashboard Content */
.mobile-dashboard {
    height: 100%;
    background: white;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.mobile-chart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        #007bff 0deg 234deg,
        #e9ecef 234deg 360deg
    );
    position: relative;
}

.pie-chart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

/* Mobile Dashboard Content */
.mobile-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-stat {
    text-align: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    display: block;
}

/* Responsive adjustments for multi-device dashboard */
@media (max-width: 768px) {
    .multi-device-dashboard {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .device.desktop {
        width: 250px;
        height: 160px;
    }
    
    .device.tablet {
        width: 100px;
        height: 130px;
        top: 0;
    }
    
    .device.mobile {
        width: 70px;
        height: 120px;
        top: 0;
    }
}

/* Search Section */
.search-section {
    position: relative;
}

.search-box .input-group {
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.search-input {
    border: none;
    font-size: 1.1rem;
    padding: 1rem;
    flex: 1;
    min-width: 0;
}

.search-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
    outline: none;
}

.search-input.has-content {
    background-color: #fff;
}

.search-input-group.focused {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    border-color: var(--primary-color);
}

.search-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.search-suggestions .search-tag {
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

.search-suggestions .search-tag:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.search-suggestions .search-tag:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.feature-block {
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.bg-light-gray {
    background-color: #f8f9fa; /* A very light gray for alternating background */
}

.feature-image-container {
    padding: 2rem;
}

.feature-image-container img {
    width: 100%;
    /* height: 440px; */
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.feature-content-container {
    padding: 2rem;
}

.feature-content-container h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-content-container .lead {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.feature-content-container .feature-list li {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    color: #333;
}

.feature-content-container .feature-list li i {
    font-size: 1.2em;
    margin-right: 0.75rem;
    color: var(--success-color);
    flex-shrink: 0;
}

/* Responsive adjustments for feature section */
@media (max-width: 991.98px) {
    .feature-block {
        flex-direction: column !important; /* Force column layout on smaller screens */
    }
    .feature-image-container, .feature-content-container {
        padding: 1.5rem;
    }
    .feature-content-container h3 {
        font-size: 1.75rem;
    }
    .feature-content-container .lead {
        font-size: 1rem;
    }
    .feature-content-container .feature-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .feature-block {
        margin-bottom: 2rem;
    }
    .feature-image-container, .feature-content-container {
        padding: 1rem;
    }
    .feature-content-container h3 {
        font-size: 1.5rem;
    }
}

/* Solutions Section */
.solutions-section {
    padding: 100px 0;
}

.solution-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f1f3f4;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.solution-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.solution-card.featured::before {
    content: 'Recommended';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.solution-icon i {
    font-size: 2rem;
    color: white;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h6 {
    margin: 0;
    font-weight: 600;
}

.stars i {
    font-size: 1.1rem;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    border: 1px solid #f1f3f4;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price .currency {
    font-size: 2.5rem;
    vertical-align: top;
}

.price .period {
    font-size: 1rem;
    color: var(--secondary-color);
}

.pricing-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.pricing-features ul li:last-child {
    border-bottom: none;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    border: none;
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--light-color);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.iframe-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.iframe-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.iframe-container iframe {
    border: none;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.contact-info-item {
    padding: 2rem;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
}

.footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--light-color);
}

/* Video Modal Styles */
#demoModal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

#demoModal .modal-dialog {
    max-width: 800px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#demoModal.show .modal-dialog {
    transform: scale(1);
}

#demoModal .modal-content {
    background: #000;
    color: white;
}

#demoModal .modal-header {
    background: #000;
    color: white;
    border-bottom: 1px solid #333;
}

#demoModal .modal-title {
    color: white;
    font-weight: 600;
}

#demoModal .btn-close {
    filter: invert(1);
}

#demoModal .video-container {
    background: #000;
}

#demoModal .video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.9);
    padding: 2.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* Hide by default for faster loading */
}

#demoModal .loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#demoModal .loading-dots {
    display: flex;
    gap: 0.5rem;
}

#demoModal .loading-dots span {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out;
}

#demoModal .loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

#demoModal .loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#demoModal iframe.loaded + .video-loading {
    display: none;
}

#demoModal .ratio {
    background: #000;
}

#demoModal iframe {
    border-radius: 0;
    transition: opacity 0.3s ease;
}

#demoModal iframe.loading {
    opacity: 0.5;
}

#demoModal .modal-footer {
    background: #000;
    border-top: 1px solid #333;
    padding: 1rem 1.5rem;
}

#demoModal .modal-footer .btn {
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Picture-in-Picture Video Player Styles */
.pip-video-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 200px;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #dc3545;
    display: none;
}

.pip-video-player:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.pip-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.pip-controls {
    display: flex;
    gap: 4px;
}

.pip-controls .btn {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
}

.pip-video-container {
    height: calc(100% - 40px);
    position: relative;
}

.pip-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
}

/* Draggable functionality */
.pip-video-player.draggable {
    cursor: move;
    user-select: none;
}

.pip-video-player.dragging {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Modal controls styling */
.modal-controls {
    display: flex;
    align-items: center;
}

.modal-controls .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
}

/* Responsive PiP */
@media (max-width: 768px) {
    .pip-video-player {
        width: 280px;
        height: 180px;
        bottom: 15px;
        right: 15px;
    }
    
    .pip-title {
        max-width: 150px;
        font-size: 11px;
    }
    
    .pip-controls .btn {
        padding: 1px 4px;
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .pip-video-player {
        width: 240px;
        height: 160px;
        bottom: 10px;
        right: 10px;
    }
    
    .pip-header {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .pip-title {
        max-width: 120px;
    }
}

#demoModal .btn-secondary {
    background: #333;
    border-color: #333;
    color: white;
}

#demoModal .btn-secondary:hover {
    background: #555;
    border-color: #555;
    color: white;
}

/* Enquiry Modal Styles */
#enquiryModal .modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#enquiryModal .modal-content.animate-in {
    transform: scale(1);
}

#enquiryModal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

#enquiryModal .modal-title {
    font-weight: 600;
    color: white;
}

#enquiryModal .btn-close {
    filter: invert(1);
}

#enquiryModal .form-control:focus,
#enquiryModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Form Styles */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Success/Error Messages */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Relax hero height on mobile */
    .hero-section .min-vh-100{ min-height: auto !important; }
    .hero-title {
        font-size: 2rem;
        font-weight: 500;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .solution-card.featured {
        transform: none;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    /* Mobile modal adjustments */
    #demoModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #demoModal .video-loading {
        padding: 1rem;
    }
    
    /* Mobile enquiry modal adjustments */
    #enquiryModal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    #enquiryModal .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
        font-weight: 500;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .whatsapp-float, .back-to-top {
        right: 20px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

/* Search highlight effect */
.search-highlight {
    animation: searchPulse 3s ease-in-out;
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.3);
}

@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 rgba(220, 53, 69, 0);
    }
    50% {
        box-shadow: 0 0 30px rgba(220, 53, 69, 0.5);
    }
    100% {
        box-shadow: 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Responsive adjustments for the entire landing page */

@media (max-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 98vw;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 1200px) {
  .feature-card, .solution-card, .pricing-card, .testimonial-card {
    padding: 2rem 1.2rem 1.5rem 1.2rem;
  }
  .footer {
    padding: 2.5rem 1rem;
  }
}

@media (max-width: 992px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .feature-card, .solution-card, .pricing-card, .testimonial-card {
    margin-bottom: 2rem;
    padding: 1.5rem 1rem 1.2rem 1rem;
  }
  .feature-card h4, .solution-card h4, .pricing-card h4, .testimonial-card h4 {
    font-size: 1.15rem;
  }
  .feature-icon, .solution-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }
  .footer .row > div {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.7rem 0;
  }
  .navbar-brand img {
    height: 36px;
  }
  .hero-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .row.g-4, .row.g-3, .row.g-2 {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .col-lg-4, .col-md-6, .col-lg-6, .col-md-4, .col-md-12 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .feature-card, .solution-card, .pricing-card, .testimonial-card {
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .feature-card h4, .solution-card h4, .pricing-card h4, .testimonial-card h4 {
    font-size: 1.05rem;
  }
  .feature-list li, .solution-card ul li, .pricing-features ul li {
    font-size: 0.98rem;
  }
  .footer {
    text-align: center;
  }
  .footer .row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer .col-lg-2, .footer .col-lg-4 {
    max-width: 100%;
    flex: 0 0 100%;
  }
  .footer .social-links {
    justify-content: center;
  }
  .modal-dialog {
    margin: 1rem auto;
    max-width: 98vw;
  }
  .modal-content {
    border-radius: 1rem;
  }
  .contact-form-wrapper {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.4rem 0;
  }
  .navbar-brand img {
    height: 28px;
  }
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  .hero-title {
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .feature-card, .solution-card, .pricing-card, .testimonial-card {
    padding: 1rem 0.5rem 0.7rem 0.5rem;
    border-radius: 0.8rem;
  }
  .feature-icon, .solution-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  .feature-list li, .solution-card ul li, .pricing-features ul li {
    font-size: 0.93rem;
  }
  .footer {
    padding: 1.5rem 0.5rem;
    font-size: 0.95rem;
  }
  .footer .row {
    gap: 1rem;
  }
  .modal-dialog {
    margin: 0.5rem auto;
    max-width: 99vw;
  }
  .modal-content {
    border-radius: 0.7rem;
  }
  .contact-form-wrapper {
    padding: 0.5rem;
  }
  .search-box .input-group {
    flex-direction: row;
    gap: 0;
  }
  .search-input-group {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .search-input {
    font-size: 1rem;
    padding: 0.75rem;
    min-height: 44px;
  }
  .search-btn {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    min-height: 44px;
    white-space: nowrap;
  }
  .input-group-text {
    font-size: 1rem;
    padding: 0.75rem;
    min-height: 44px;
  }
  .search-suggestions {  overflow: auto;
    flex-wrap: nowrap;
    display: flex;
}
  /* Additional mobile search fixes */
  .search-box {
    width: 100%;
    max-width: 100%;
  }
  
  .search-input-group .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
  }
  
  .search-input-group .btn {
    border-radius: 0 0.375rem 0.375rem 0;
  }
  
  .search-input-group .input-group-text {
    border-radius: 0.375rem 0 0 0.375rem;
  }
}

/* Ensure images and videos are always fluid */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent horizontal scrolling */
body {
  overflow-x: hidden;
}

/* Make buttons and touch targets large enough */
.btn, button, .form-control, .form-select {
  min-height: 44px;
  font-size: 1rem;
}

/* Ensure modals are always readable and accessible */
.modal-content {
  font-size: 1rem;
}

/* Responsive table tweaks (if any tables) */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* Responsive testimonial images */
.author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Responsive footer links */
.footer a {
  word-break: break-all;
}

/* Footer logo size and alignment */
.footer img {
  height: 48px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: height 0.2s, max-width 0.2s;
  display: block;
}

@media (max-width: 992px) {
  .footer img {
    height: 36px;
    max-width: 100px;
  }
}
@media (max-width: 768px) {
  .footer img {
    height: 32px;
    max-width: 80px;
    margin-bottom: 0.5rem;
  }
  .footer .row {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer .col-lg-2, .footer .col-lg-4 {
    max-width: 100%;
    flex: 0 0 100%;
  }
}
@media (max-width: 576px) {
  .footer img {
    height: 20px;
    max-width: 50px;
  }
}
/* Screenshot carousel: force consistent size with cropping */
.screenshots-section .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Ensure the carousel item area is stable */
.screenshots-section .carousel-item {
  min-height: 500px;
}

/* Professional Screenshot Carousel - Fixed Dimensions */
#screenshotCarousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 2rem 0;
  background: #000;
}

#screenshotCarousel .carousel-item {
  height: 500px;
  position: relative;
  overflow: hidden;
}

#screenshotCarousel .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

#screenshotCarousel .carousel-item:hover img {
  transform: scale(1.02);
}

#screenshotCarousel .carousel-caption {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 1.5rem;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  backdrop-filter: blur(10px);
}

#screenshotCarousel .carousel-control-prev,
#screenshotCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  margin: auto 1rem;
  backdrop-filter: blur(10px);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}

#screenshotCarousel .carousel-control-prev:hover,
#screenshotCarousel .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

#screenshotCarousel .carousel-control-prev-icon,
#screenshotCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

#screenshotCarousel .carousel-indicators {
  bottom: 1rem;
}

#screenshotCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin: 0 4px;
}

#screenshotCarousel .carousel-indicators button.active {
  background: #fff;
  border-color: #fff;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  #screenshotCarousel .carousel-item {
    height: 350px;
  }
  
  #screenshotCarousel .carousel-item img {
    height: 350px;
  }
  
  #screenshotCarousel .carousel-caption {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
  }
  
  #screenshotCarousel .carousel-caption h5 {
    font-size: 1rem;
  }
  
  #screenshotCarousel .carousel-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  #screenshotCarousel .carousel-item {
    height: 300px;
  }
  
  #screenshotCarousel .carousel-item img {
    height: 300px;
  }
  
  #screenshotCarousel .carousel-control-prev,
  #screenshotCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    margin: auto 0.5rem;
  }
}

/* Professional ISO Certificate Section */
.iso-certificate-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.iso-logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: all 0.3s ease;
}

.iso-logo-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-5px);
}

.iso-logo-container {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.iso-logo-container:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

.iso-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  transition: all 0.3s ease;
}

.iso-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.iso-logo-container:hover .iso-overlay {
  opacity: 1;
}

.iso-overlay i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.iso-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .iso-logo {
    width: 100px;
    height: 100px;
  }
  
  .iso-certificate-section {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
  }
}

@media (max-width: 576px) {
  .iso-logo {
    width: 80px;
    height: 80px;
  }
  
  .iso-overlay i {
    font-size: 1.2rem;
  }
  
  .iso-overlay span {
    font-size: 0.7rem;
  }
}


  /* Keep all Swiper slides same ratio across devices */
  .screenshots-swiper .swiper-slide {
    aspect-ratio: 16 / 9; /* Adjust ratio: 4/3, 21/9, etc. */
    }
    
    .screenshots-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop to fill without distortion */
    border-radius: 0.75rem; /* Matches Bootstrap rounded-3 */
    }
    
    /* Optional: tweak for smaller screens */
    @media (max-width: 576px) {
    .screenshots-swiper .swiper-slide {
    aspect-ratio: 4 / 3; /* Slightly taller on mobile */
    }
    }
    
.trust-logos {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trust-logos h6 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.trust-logos .trust-logo,
.trust-logos .iso-badge {
  height: 50px; /* Slightly smaller size for badges */
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 0 10px; /* Adjusted padding */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Softer shadow */
  border-radius: var(--border-radius); /* Rounded corners */
}

.trust-logos .trust-logo:hover,
.trust-logos .iso-badge:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05); /* Slight scale on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
}
  /* New Trusted Partners Section styles */
  .trusted-partners-section {
      padding: 3rem 0;
    }

    .trusted-partners-section h2 {
      font-size: 2.3rem;
      font-weight: 800;
      color: #1a1a1a;
      margin-bottom: 0.5rem;
      letter-spacing: 0.01em;
    }

    .trusted-partners-section p {
      color: #6c757d;
      font-size: 1.1rem;
      margin-bottom: 2.5rem;
    }

    .trusted-partners-section .partner-logo,
    .trusted-partners-section .iso-badge {
      height: 60px; /* Increased size by ~20-25% from previous 50px */
      width: auto;
      object-fit: contain;
      filter: grayscale(100%);
      opacity: 0.7;
      transition: all 0.3s ease;
      padding: 0 20px; /* Increased padding */
      border-radius: var(--border-radius); /* Ensure rounded corners */
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); /* Softer shadow for static display */
    }

    .trusted-partners-section .partner-logo:hover,
    .trusted-partners-section .iso-badge:hover {
      filter: grayscale(0%);
      opacity: 1;
      transform: scale(1.08); /* Slightly more prominent scale on hover */
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
    }

    @media (max-width: 768px) {
      .trusted-partners-section .partner-logo,
      .trusted-partners-section .iso-badge {
        height: 45px; /* Adjust for smaller screens */
        padding: 0 10px;
      }
    }
    .trusted-partners-swiper .swiper-slide {
      transition: transform 0.3s;
    }
    .trusted-partners-swiper .swiper-slide img {
      max-height: 100px;
      max-width: 160px;
      object-fit: contain;
      filter: grayscale(0.2);
      transition: transform 0.3s, filter 0.3s;
    }
    .trusted-partners-swiper .swiper-slide-active img,
    .trusted-partners-swiper .swiper-slide:hover img {
      filter: grayscale(0) drop-shadow(0 2px 8px rgba(0,0,0,0.01));
      transform: scale(1.14);
    }
    @media (max-width: 576px) {
      .trusted-partners-section h2 {
        font-size: 1.8rem;
      }
      .trusted-partners-section p {
        font-size: 1rem;
      }
      .trusted-partners-section .partner-logo,
      .trusted-partners-section .iso-badge {
        height: 35px;
        padding: 0 8px;
      }
    }


    