/* ===== MOBILE FRAMEWORK CSS ===== */
/* Comprehensive mobile-first responsive framework for ConsultTik website */
/* Optimized for touch interfaces and mobile user experience */

/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== MOBILE CONTAINER SYSTEM ===== */
.mobile-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.mobile-container-fluid {
    width: 100%;
    padding: 0 10px;
}

/* ===== MOBILE GRID SYSTEM ===== */
.mobile-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.mobile-col {
    padding: 0 8px;
    width: 100%;
}

.mobile-col-6 {
    width: 50%;
    padding: 0 0.25rem;
}

.mobile-col-4 {
    width: 33.333%;
}

.mobile-col-3 {
    width: 25%;
}

/* ===== MOBILE TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
    color: #2c3e50;
}

.mobile-h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.mobile-h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.mobile-h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.mobile-h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.875rem;
}

.mobile-h5 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.mobile-h6 {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.625rem;
}

.mobile-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mobile-text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.mobile-text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ===== MOBILE BUTTONS ===== */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 4px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* iOS minimum touch target */
    min-width: 44px;
    position: relative;
    overflow: hidden;
}

.mobile-btn:active {
    transform: scale(0.98);
}

.mobile-btn-primary {
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.mobile-btn-primary:hover,
.mobile-btn-primary:focus {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    box-shadow: 0 6px 20px rgba(0, 120, 212, 0.4);
    color: white;
}

.mobile-btn-secondary {
    background: transparent;
    color: #0078d4;
    border: 2px solid #0078d4;
}

.mobile-btn-secondary:hover,
.mobile-btn-secondary:focus {
    background: #0078d4;
    color: white;
}

.mobile-btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.mobile-btn-outline:hover,
.mobile-btn-outline:focus {
    background: #f8f9fa;
    border-color: #0078d4;
    color: #0078d4;
}

.mobile-btn-lg {
    padding: 16px 28px;
    font-size: 1.125rem;
    min-height: 50px;
}

.mobile-btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    min-height: 36px;
}

.mobile-btn-block {
    display: block;
    width: 100%;
    margin: 8px 0;
}

/* ===== MOBILE CARDS ===== */
.mobile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mobile-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.mobile-card-body {
    padding: 15px;
}

/* Smaller cards for metric/stat displays */
.metric-mobile-card .mobile-card-body {
    padding: 12px;
}

/* Feature Cards with Images - Global Mobile Styles */
.feature-mobile-card {
    border: 1px solid rgba(0, 120, 212, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 16px;
    background: white;
}

.feature-mobile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.15);
    border-color: rgba(0, 120, 212, 0.3);
}

.feature-mobile-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f8f9fa;
}

.feature-mobile-image .mobile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dark mode for feature cards */
[data-theme="dark"] .feature-mobile-card {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .mobile-card-title {
    color: #ffffff;
}

[data-theme="dark"] .mobile-card-text {
    color: #e0e0e0;
}

[data-theme="dark"] .feature-mobile-image {
    background: #2d2d2d;
}

.mobile-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.mobile-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.mobile-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

/* ===== MOBILE HERO SECTIONS ===== */
.mobile-hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #0A1F44, #1e3a8a);
    color: white;
    position: relative;
    overflow: hidden;
}

.mobile-hero::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="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.mobile-hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.mobile-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.mobile-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 15px;
}

.mobile-nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0078d4;
    text-decoration: none;
}

.mobile-nav-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
}

.mobile-nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: white;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus,
.mobile-nav-link.active {
    background: #f8f9fa;
    color: #0078d4;
    padding-left: 30px;
}

/* ===== MOBILE SECTIONS ===== */
.mobile-section {
    padding: 40px 0;
}

.mobile-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.mobile-section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MOBILE FORMS ===== */
.mobile-form-group {
    margin-bottom: 20px;
}

.mobile-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.mobile-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    min-height: 44px;
}

.mobile-form-control:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
}

.mobile-form-control::placeholder {
    color: #999;
}

.mobile-textarea {
    min-height: 120px;
    resize: vertical;
}

.mobile-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

/* ===== MOBILE UTILITIES ===== */
.mobile-text-center { text-align: center !important; }
.mobile-text-left { text-align: left !important; }
.mobile-text-right { text-align: right !important; }

.mobile-d-none { display: none !important; }
.mobile-d-block { display: block !important; }
.mobile-d-flex { display: flex !important; }

.mobile-flex-column { flex-direction: column !important; }
.mobile-flex-row { flex-direction: row !important; }
.mobile-justify-center { justify-content: center !important; }
.mobile-align-center { align-items: center !important; }

.mobile-mt-0 { margin-top: 0 !important; }
.mobile-mt-1 { margin-top: 0.5rem !important; }
.mobile-mt-2 { margin-top: 1rem !important; }
.mobile-mt-3 { margin-top: 1.5rem !important; }
.mobile-mt-4 { margin-top: 2rem !important; }
.mobile-mt-5 { margin-top: 3rem !important; }

.mobile-mb-0 { margin-bottom: 0 !important; }
.mobile-mb-1 { margin-bottom: 0.5rem !important; }
.mobile-mb-2 { margin-bottom: 1rem !important; }
.mobile-mb-3 { margin-bottom: 1.5rem !important; }
.mobile-mb-4 { margin-bottom: 2rem !important; }
.mobile-mb-5 { margin-bottom: 3rem !important; }

.mobile-p-0 { padding: 0 !important; }
.mobile-p-1 { padding: 0.5rem !important; }
.mobile-p-2 { padding: 1rem !important; }
.mobile-p-3 { padding: 1.5rem !important; }
.mobile-p-4 { padding: 2rem !important; }
.mobile-p-5 { padding: 3rem !important; }

.mobile-w-100 { width: 100% !important; }
.mobile-h-100 { height: 100% !important; }

/* ===== MOBILE RESPONSIVE IMAGES ===== */
.mobile-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mobile-img-rounded {
    border-radius: 12px;
}

.mobile-img-circle {
    border-radius: 50%;
}

/* ===== MOBILE ANIMATIONS ===== */
@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-animate-slide {
    animation: mobileSlideIn 0.6s ease-out;
}

.mobile-animate-fade {
    animation: mobileFadeIn 0.8s ease-out;
}

/* ===== MOBILE DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    [data-theme="dark"] body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    [data-theme="dark"] .mobile-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    [data-theme="dark"] .mobile-form-control {
        background: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    [data-theme="dark"] .mobile-nav {
        background: #2d2d2d;
    }
    
    [data-theme="dark"] .mobile-nav-menu {
        background: #2d2d2d;
    }
    
    [data-theme="dark"] .mobile-nav-link {
        color: #e0e0e0;
    }
}

/* ===== MOBILE BREAKPOINTS ===== */
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .mobile-container {
        padding: 0 10px;
    }
    
    .mobile-hero-title {
        font-size: 1.875rem;
    }
    
    .mobile-h1 {
        font-size: 1.75rem;
    }
    
    .mobile-section {
        padding: 30px 0;
    }
    
    .mobile-card-body {
        padding: 15px;
    }
    
    .mobile-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .mobile-container {
        max-width: 540px;
    }
    
    .mobile-hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-container {
        max-width: 720px;
    }
    
    .mobile-col-md-6 {
        width: 50%;
    }
    
    .mobile-col-md-4 {
        width: 33.333%;
    }
    
    .mobile-col-md-3 {
        width: 25%;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.mobile-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-btn:focus,
.mobile-form-control:focus,
.mobile-nav-link:focus {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-btn {
        border: 2px solid currentColor;
    }
    
    .mobile-card {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== MOBILE DIGITAL SOLUTIONS INTRO SECTION ===== */
.mobile-digital-solutions-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mobile-digital-solutions-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 120, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 188, 242, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.mobile-intro-image-wrapper {
    width: 100%;
    max-width: 380px;
    margin: 0 auto 25px;
    position: relative;
    animation: mobileImageFloat 3s ease-in-out infinite;
}

.mobile-intro-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 15px;
    border: 2px solid rgba(0, 120, 212, 0.2);
    animation: mobilePulse 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes mobilePulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.95);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
}

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

.mobile-intro-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.15);
}

.mobile-intro-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2248;
    line-height: 1.4;
    margin: 0 0 20px;
    padding: 0 10px 15px;
    position: relative;
}

.mobile-intro-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0078d4, #00bcf2);
    border-radius: 2px;
}

.mobile-intro-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    text-align: justify;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 3px solid #0078d4;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 100%;
}

/* ===== RTL SUPPORT FOR ARABIC ===== */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .mobile-container,
[dir="rtl"] .mobile-container-fluid {
    direction: rtl;
}

[dir="rtl"] .mobile-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .mobile-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .mobile-card {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .mobile-card-header,
[dir="rtl"] .mobile-card-body,
[dir="rtl"] .mobile-card-footer {
    text-align: right;
}

[dir="rtl"] .mobile-hero {
    direction: rtl;
}

[dir="rtl"] .mobile-hero-subtitle {
    text-align: center;
}

[dir="rtl"] .mobile-nav-menu {
    left: auto;
    right: -100%;
}

[dir="rtl"] .mobile-nav-menu.active {
    right: 0;
    left: auto;
}

[dir="rtl"] .mobile-nav-link:hover,
[dir="rtl"] .mobile-nav-link:focus,
[dir="rtl"] .mobile-nav-link.active {
    padding-right: 30px;
    padding-left: 20px;
}

[dir="rtl"] .mobile-form-control,
[dir="rtl"] .mobile-textarea,
[dir="rtl"] .mobile-select {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .mobile-select {
    background-position: left 12px center;
    padding-right: 16px;
    padding-left: 40px;
}

[dir="rtl"] .mobile-text-left {
    text-align: right !important;
}

[dir="rtl"] .mobile-text-right {
    text-align: left !important;
}

[dir="rtl"] .mobile-intro-description {
    border-left: none;
    border-right: 3px solid #0078d4;
    text-align: justify;
}

[dir="rtl"] .mobile-intro-title::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] ul,
[dir="rtl"] ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

@media (max-width: 375px) {
    .mobile-intro-title {
        font-size: 1.3rem;
    }
    
    .mobile-intro-description {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .mobile-intro-image-wrapper {
        max-width: 300px;
    }
}
