/* ========================================
   Enhanced Home.css - Complete RTL Support
   Mobile-First Responsive Design
   Using Exact Header Color Scheme
   ======================================== */

/* CSS Variables - Exact Header Color Scheme */
:root {
    /* Primary Colors */
    --primary-blue: #4d61f4;
    --primary-lime: #d7fe7c;
    --primary-dark: #232323;

    /* Secondary Colors */
    --secondary-green: #0b3e27;
    --secondary-purple: #cb89ff;
    --secondary-light-blue: #d0edfa;
    --secondary-light-gray: #f6f5f2;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4d61f4 0%, #cb89ff 100%);
    --gradient-lime: linear-gradient(135deg, #d7fe7c 0%, #a7fe3c 100%);
    --gradient-dark: linear-gradient(135deg, #232323 0%, #4a4a4a 100%);

    /* Text Colors */
    --text-primary: #232323;
    --text-secondary: #4d61f4;
    --text-light: #666666;
    --text-white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(35, 35, 35, 0.04);
    --shadow: 0 5px 10px rgba(35, 35, 35, 0.06);
    --shadow-lg: 0 10px 20px rgba(35, 35, 35, 0.08);
    --shadow-xl: 0 20px 30px rgba(35, 35, 35, 0.1);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
}

/* ========================================
   Base Styles - Mobile First
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--secondary-light-gray);
    overflow-x: hidden;
}

/* RTL Font Family */
[dir="rtl"] body,
body.tq-rtl {
    font-family: 'IBM Plex Sans Arabic', 'Montserrat', 'Tajawal', -apple-system, sans-serif;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ========================================
   reCAPTCHA Badge Fix
   ======================================== */
.grecaptcha-badge {
    display: none !important;
    z-index: 0 !important;
    position: fixed !important;
    bottom: 20px !important;
}

[dir="ltr"] .grecaptcha-badge {
    right: 20px !important;
    left: auto !important;
}

[dir="rtl"] .grecaptcha-badge {
    left: 20px !important;
    right: auto !important;
}

/* ========================================
   Hero Section - Mobile First
   ======================================== */
.tq-hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 120dvh;
    display: flex;
    align-items: center;
    background: var(--secondary-light-gray);
    overflow: hidden;
    padding: 80px 0 40px;
    margin-top: -60px;
}

/* Hero Background */
.tq-hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tq-hero-gradient-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(77, 97, 244, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(215, 254, 124, 0.1) 0%, transparent 40%);
    animation: tqGradientShift 20s ease infinite;
}

@keyframes tqGradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.tq-particle-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.tq-hero-mesh {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(77, 97, 244, 0.02) 100px,
            rgba(77, 97, 244, 0.02) 200px
    );
}

/* Floating Orbs */
.tq-floating-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tq-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.tq-orb-1 {
    width: clamp(150px, 20vw, 250px);
    height: clamp(150px, 20vw, 250px);
    background: var(--primary-lime);
    top: 10%;
    animation: tqFloat1 25s ease-in-out infinite;
}

[dir="ltr"] .tq-orb-1 {
    left: -10%;
}

[dir="rtl"] .tq-orb-1 {
    right: -10%;
}

.tq-orb-2 {
    width: clamp(200px, 30vw, 350px);
    height: clamp(200px, 30vw, 350px);
    background: var(--secondary-purple);
    bottom: 10%;
    animation: tqFloat2 30s ease-in-out infinite;
}

[dir="ltr"] .tq-orb-2 {
    right: -10%;
}

[dir="rtl"] .tq-orb-2 {
    left: -10%;
}

.tq-orb-3 {
    width: clamp(100px, 15vw, 200px);
    height: clamp(100px, 15vw, 200px);
    background: var(--secondary-light-blue);
    top: 50%;
    left: 50%;
    animation: tqFloat3 20s ease-in-out infinite;
}

@keyframes tqFloat1 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(50px, -30px); }
    66% { transform: translate(-30px, 50px); }
}

@keyframes tqFloat2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-60px, 40px); }
    66% { transform: translate(40px, -60px); }
}

@keyframes tqFloat3 {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* Hero Container */
.tq-hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Hero Content Wrapper */
.tq-hero-content-wrapper {
    text-align: center;
}

/* Hero Badge */
.tq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--text-white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    position: relative;
    width: fit-content;
    margin: 0 auto 1.5rem;
}

.tq-badge-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background: var(--gradient-primary);
    opacity: 0.2;
    animation: tqPulse 2s infinite;
}

@keyframes tqPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0; }
}

.tq-badge-icon {
    color: var(--primary-lime);
    font-size: 1rem;
}

.tq-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Title */
.tq-hero-title {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tq-title-line-1,
.tq-title-line-2 {
    display: block;
}

.tq-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Description */
.tq-hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Hero CTA */
.tq-hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* Buttons */
.tq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    width: 100%;
    min-height: 48px;
}

/* Button Icons */
[dir="ltr"] .tq-btn-icon {
    margin-left: 0.5rem;
}

[dir="rtl"] .tq-btn-icon {
    margin-right: 0.5rem;
    transform: rotate(180deg);
}

[dir="ltr"] .tq-btn-icon-left {
    margin-right: 0.5rem;
}

[dir="rtl"] .tq-btn-icon-left {
    margin-left: 0.5rem;
}

.tq-btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(77, 97, 244, 0.2);
}

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

.tq-btn-glow {
    animation: tqGlow 2s ease infinite;
}

@keyframes tqGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(77, 97, 244, 0.2); }
    50% { box-shadow: 0 4px 25px rgba(77, 97, 244, 0.3); }
}

.tq-btn-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* Trust Metrics */
.tq-trust-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(77, 97, 244, 0.1);
}

.tq-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0 1rem;
}

.tq-metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.tq-metric-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.tq-metric-divider {
    width: 1px;
    height: 40px;
    background: rgba(77, 97, 244, 0.2);
    display: none;
}

.tq-rating-stars {
    color: #fbbf24;
    font-size: 1rem;
}

/* Hero Visual - Mobile Hidden */
.tq-hero-visual {
    display: none;
}

/* Scroll Indicator */
.tq-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    animation: tqBounce 2s ease infinite;
}

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

.tq-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    margin: 0 auto 0.5rem;
    position: relative;
}

.tq-wheel {
    width: 3px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: tqWheel 2s infinite;
}

@keyframes tqWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 18px; }
}

.tq-scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ========================================
   Stats Bar
   ======================================== */
.tq-stats-bar {
    padding: 3rem 0;
    background: var(--text-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.tq-stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.tq-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--secondary-light-gray);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.tq-stat-card:active {
    transform: scale(0.98);
}

.tq-stat-icon-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.tq-stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--secondary-green);
    position: relative;
    z-index: 1;
}

.tq-stat-bg {
    position: absolute;
    inset: -5px;
    background: var(--gradient-lime);
    border-radius: 50%;
    opacity: 0.2;
    animation: tqPulse 3s infinite;
}

.tq-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.tq-stat-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ========================================
   Services Section
   ======================================== */
.tq-services-section {
    padding: 4rem 0;
    background: var(--secondary-light-gray);
}

.tq-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tq-section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-lime);
    color: var(--secondary-green);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tq-section-title {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tq-title-gradient {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tq-section-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Cards */
.tq-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.tq-service-card {
    position: relative;
    background: var(--text-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
}

.tq-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tq-service-card:hover .tq-card-glow {
    transform: scaleX(1);
}

.tq-card-inner {
    padding: 2rem 1.5rem;
}

.tq-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tq-service-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-blue);
}

.tq-icon-bg {
    position: absolute;
    inset: -10px;
    background: var(--gradient-primary);
    opacity: 0.1;
    border-radius: var(--border-radius-lg);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.tq-service-card:hover .tq-icon-bg {
    transform: rotate(5deg) scale(1.1);
}

.tq-service-badge {
    padding: 0.25rem 0.75rem;
    background: var(--primary-lime);
    color: var(--secondary-green);
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tq-service-card.tq-featured {
    background: var(--gradient-primary);
    color: var(--text-white);
    position: relative;
}

.tq-featured-ribbon {
    position: absolute;
    top: 30px;
    padding: 0.5rem 3rem;
    background: var(--primary-lime);
    color: var(--secondary-green);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

[dir="ltr"] .tq-featured-ribbon {
    right: -43px;
    transform: rotate(45deg);
}

[dir="rtl"] .tq-featured-ribbon {
    left: -43px;
    transform: rotate(-45deg);
}

.tq-service-card.tq-featured .tq-service-icon {
    color: var(--text-white);
}

.tq-service-card.tq-featured .tq-icon-bg {
    background: rgba(255, 255, 255, 0.2);
}

.tq-service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tq-service-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tq-service-card.tq-featured .tq-service-desc {
    color: rgba(255, 255, 255, 0.9);
}

.tq-service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.tq-service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

[dir="rtl"] .tq-service-features li {
    flex-direction: row-reverse;
}

.tq-service-card.tq-featured .tq-service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.tq-service-features i {
    color: var(--primary-lime);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.tq-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

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

.tq-service-card.tq-featured .tq-service-link {
    color: var(--text-white);
}

.tq-service-link:hover {
    gap: 1rem;
}

/* Link Icons */
[dir="ltr"] .tq-link-icon {
    transition: transform 0.3s ease;
}

[dir="rtl"] .tq-link-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

[dir="ltr"] .tq-service-link:hover .tq-link-icon {
    transform: translateX(3px);
}

[dir="rtl"] .tq-service-link:hover .tq-link-icon {
    transform: rotate(180deg) translateX(3px);
}

/* ========================================
   Why Section
   ======================================== */
.tq-why-section {
    padding: 4rem 0;
    background: var(--text-white);
}

.tq-why-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tq-why-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tq-why-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--secondary-light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.tq-why-feature:active {
    transform: scale(0.98);
}

.tq-feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-lime);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--secondary-green);
}

.tq-feature-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tq-feature-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Achievement Grid */
.tq-achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    gap: 1rem;
}

.tq-achievement-card {
    padding: 1.5rem 1rem;
    background: var(--secondary-light-gray);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
}

.tq-achievement-card:active {
    transform: scale(0.98);
}

.tq-achievement-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.tq-achievement-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Process Section - FIXED VERSION
   Complete Mobile/Tablet/Desktop + RTL/LTR Support
   ======================================== */

.tq-process-section {
    padding: 4rem 0;
    background: var(--secondary-light-gray);
    overflow: hidden;
}

.tq-process-wrapper {
    position: relative;
    margin-top: 3rem;
    padding: 0 1rem;
}

/* Process Line - Mobile Hidden by Default */
.tq-process-line {
    display: none;
    position: absolute;
    background: rgba(77, 97, 244, 0.2);
    z-index: 0;
}

.tq-process-progress {
    position: absolute;
    background: var(--gradient-primary);
    transition: all 1s ease;
    z-index: 1;
}

/* Process Steps Container */
.tq-process-steps {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2rem;
}

/* Process Step */
.tq-process-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.tq-process-step.tq-active {
    opacity: 1;
}

/* Step Marker */
.tq-step-marker {
    position: relative;
    flex-shrink: 0;
    z-index: 3;
}

.tq-step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.125rem;
    position: relative;
    z-index: 2;
    border: 3px solid var(--secondary-light-gray);
    box-shadow: var(--shadow);
}

.tq-process-step.tq-active .tq-step-number {
    animation: tqStepPop 0.5s ease;
}

@keyframes tqStepPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.tq-step-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    animation: none;
}

.tq-process-step.tq-active .tq-step-pulse {
    animation: tqPulse 2s infinite;
}

/* Step Card */
.tq-step-card {
    flex: 1;
    background: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.tq-process-step.tq-active .tq-step-card {
    box-shadow: var(--shadow);
}

.tq-step-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-lime);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

.tq-step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.tq-step-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.tq-step-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tq-step-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.tq-step-details i {
    color: var(--primary-lime);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Mobile Styles (Default) */
@media (max-width: 767px) {
    .tq-process-section {
        padding: 3rem 0;
    }

    .tq-process-wrapper {
        margin-top: 2rem;
    }

    .tq-process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Vertical line for mobile */
    .tq-process-line {
        display: block;
        top: 25px;
        bottom: 25px;
        width: 2px;
        height: auto;
    }

    /* LTR Mobile */
    [dir="ltr"] .tq-process-line {
        left: 24px;
    }

    [dir="ltr"] .tq-process-progress {
        left: 0;
        width: 100%;
        height: 0%;
    }

    [dir="ltr"] .tq-process-step {
        flex-direction: row;
    }

    [dir="ltr"] .tq-step-card:hover {
        transform: translateX(5px);
    }

    /* RTL Mobile */
    [dir="rtl"] .tq-process-line {
        right: 24px;
    }

    [dir="rtl"] .tq-process-progress {
        right: 0;
        width: 100%;
        height: 0%;
    }

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

    [dir="rtl"] .tq-step-card:hover {
        transform: translateX(-5px);
    }

    [dir="rtl"] .tq-step-details span {
        flex-direction: row-reverse;
    }
}

/* ========================================
   CTA Section
   ======================================== */
.tq-cta-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.tq-cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    z-index: 0;
}

.tq-cta-pattern {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 100px
    );
}

.tq-cta-glow-1,
.tq-cta-glow-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
}

.tq-cta-glow-1 {
    background: var(--primary-lime);
    top: -150px;
    opacity: 0.3;
}

[dir="ltr"] .tq-cta-glow-1 {
    left: -150px;
}

[dir="rtl"] .tq-cta-glow-1 {
    right: -150px;
}

.tq-cta-glow-2 {
    background: var(--secondary-purple);
    bottom: -150px;
    opacity: 0.3;
}

[dir="ltr"] .tq-cta-glow-2 {
    right: -150px;
}

[dir="rtl"] .tq-cta-glow-2 {
    left: -150px;
}

.tq-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tq-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.tq-cta-badge i {
    color: var(--primary-lime);
}

.tq-cta-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.tq-cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tq-cta-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tq-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 0.875rem;
}

.tq-benefit i {
    color: var(--primary-lime);
    font-size: 1rem;
}

.tq-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tq-btn-cta {
    background: var(--text-white);
    color: var(--primary-blue);
    font-size: 1rem;
    padding: 1rem 2rem;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tq-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.tq-cta-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.tq-cta-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-lime);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.tq-cta-phone:hover {
    transform: scale(1.05);
}

.tq-cta-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.875rem;
}

.tq-cta-urgency i {
    color: var(--primary-lime);
}

/* ========================================
   RTL Specific Adjustments
   ======================================== */
[dir="rtl"] .tq-hero-title,
[dir="rtl"] .tq-hero-description,
[dir="rtl"] .tq-section-header,
[dir="rtl"] .tq-section-title,
[dir="rtl"] .tq-section-subtitle {
    text-align: right;
}

[dir="rtl"] .tq-hero-content-wrapper {
    text-align: center;
}

[dir="rtl"] .tq-why-feature:hover {
    transform: translateX(-10px);
}

/* RTL Text Alignment for Desktop */
@media (min-width: 768px) {
    [dir="rtl"] .tq-hero-content-wrapper {
        text-align: right;
    }

    [dir="rtl"] .tq-hero-badge {
        margin: 0 0 2rem;
        margin-right: auto;
    }

    [dir="rtl"] .tq-hero-title {
        text-align: right;
    }

    [dir="rtl"] .tq-hero-description {
        text-align: right;
    }

    [dir="rtl"] .tq-trust-metrics {
        justify-content: flex-end;
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Small Tablets and Large Phones (640px+) */
@media (min-width: 640px) {
    .tq-hero-cta-group {
        flex-direction: row;
        gap: 1rem;
    }

    .tq-hero-section {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 130dvh;
    }

    .tq-btn {
        width: auto;
        flex: 1;
    }

    .tq-stats-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .tq-cta-benefits {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    .tq-hero-section {
        padding: 100px 0 60px;
    }

    .tq-hero-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .tq-hero-content-wrapper {
        text-align: left;
    }

    .tq-hero-badge {
        margin: 0 0 2rem;
    }

    .tq-hero-title {
        text-align: left;
    }

    .tq-hero-description {
        text-align: left;
        margin: 0 0 2rem;
    }

    .tq-hero-cta-group {
        margin: 0 0 3rem;
        max-width: none;
    }

    .tq-trust-metrics {
        justify-content: flex-start;
    }

    .tq-metric-divider {
        display: block;
    }

    /* Show Hero Visual */
    .tq-hero-visual {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tq-visual-container {
        position: relative;
        width: 400px;
        height: 400px;
    }

    .tq-tech-orbit {
        position: relative;
        width: 100%;
        height: 100%;
        animation: tqOrbitRotate 60s linear infinite;
    }

    [dir="rtl"] .tq-tech-orbit {
        animation: tqOrbitRotateRTL 60s linear infinite;
    }

    @keyframes tqOrbitRotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    @keyframes tqOrbitRotateRTL {
        from { transform: rotate(0deg); }
        to { transform: rotate(-360deg); }
    }

    .tq-orbit-ring {
        position: absolute;
        border: 2px dashed rgba(77, 97, 244, 0.2);
        border-radius: 50%;
    }

    .tq-orbit-1 {
        width: 150px;
        height: 150px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .tq-orbit-2 {
        width: 250px;
        height: 250px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .tq-orbit-3 {
        width: 350px;
        height: 350px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .tq-orbit-item {
        position: absolute;
        width: 50px;
        height: 50px;
        background: var(--text-white);
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: var(--primary-blue);
        box-shadow: var(--shadow);
        animation: tqOrbitItemRotate 60s linear infinite reverse;
    }

    [dir="rtl"] .tq-orbit-item {
        animation: tqOrbitItemRotateRTL 60s linear infinite reverse;
    }

    @keyframes tqOrbitItemRotate {
        from { transform: rotate(0deg); }
        to { transform: rotate(-360deg); }
    }

    @keyframes tqOrbitItemRotateRTL {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .tq-orbit-1 .tq-orbit-item {
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
    }

    .tq-orbit-2 .tq-orbit-item:nth-child(1) {
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
    }

    .tq-orbit-2 .tq-orbit-item:nth-child(2) {
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
    }

    .tq-orbit-3 .tq-orbit-item:nth-child(1) {
        top: -25px;
        left: 50%;
        transform: translateX(-50%);
    }

    .tq-orbit-3 .tq-orbit-item:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    [dir="ltr"] .tq-orbit-3 .tq-orbit-item:nth-child(2) {
        right: -25px;
    }

    [dir="rtl"] .tq-orbit-3 .tq-orbit-item:nth-child(2) {
        left: -25px;
    }

    .tq-orbit-3 .tq-orbit-item:nth-child(3) {
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
    }

    .tq-center-element {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .tq-center-icon {
        width: 100px;
        height: 100px;
        background: var(--gradient-primary);
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
        color: var(--text-white);
        box-shadow: 0 20px 60px rgba(77, 97, 244, 0.4);
    }

    .tq-center-ring {
        position: absolute;
        inset: -20px;
        border: 3px solid rgba(77, 97, 244, 0.2);
        border-radius: 30px;
        animation: tqCenterPulse 2s ease infinite;
    }

    @keyframes tqCenterPulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.1); opacity: 0.5; }
    }

    .tq-stats-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }

    .tq-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tq-why-features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tablet Process Section Styles */
    .tq-process-wrapper {
        padding: 0 2rem;
    }

    .tq-process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
        row-gap: 3rem;
    }

    .tq-process-line {
        display: none;
    }

    .tq-process-step {
        flex-direction: column;
        text-align: center;
        position: relative;
    }

    .tq-step-marker {
        margin: 0 auto;
    }

    .tq-step-card {
        width: 100%;
    }

    .tq-step-card:hover {
        transform: translateY(-5px);
    }

    .tq-cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .tq-hero-title {
        font-size: 3rem;
    }

    .tq-visual-container {
        width: 500px;
        height: 500px;
    }

    .tq-orbit-1 { width: 200px; height: 200px; }
    .tq-orbit-2 { width: 300px; height: 300px; }
    .tq-orbit-3 { width: 400px; height: 400px; }

    .tq-center-icon {
        width: 120px;
        height: 120px;
        font-size: 50px;
    }

    .tq-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tq-card-inner {
        padding: 2.5rem;
    }

    .tq-why-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }

    .tq-achievement-grid {
        gap: 1.5rem;
    }

    /* Desktop Process Section Styles */
    .tq-process-wrapper {
        padding: 0 3rem;
    }

    .tq-process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    /* Horizontal line for desktop */
    .tq-process-line {
        display: block;
        top: 25px;
        height: 2px;
        width: calc(100% - 100px);
        left: 50px;
        right: 50px;
    }

    .tq-process-progress {
        top: 0;
        left: 0;
        height: 100%;
        width: 0%;
        transition: width 1s ease;
    }

    .tq-process-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .tq-step-marker {
        margin: 0 auto 1.5rem;
    }

    .tq-step-card {
        width: 100%;
        min-height: 280px;
        display: flex;
        flex-direction: column;
    }

    .tq-step-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

    .tq-step-number {
        background: var(--gradient-primary);
        border: 4px solid var(--secondary-light-gray);
    }

    .tq-process-step.tq-active .tq-step-number {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(77, 97, 244, 0.4);
    }

    /* Hover Effects */
    .tq-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(77, 97, 244, 0.3);
    }

    .tq-btn-glass:hover {
        background: var(--primary-blue);
        color: var(--text-white);
        border-color: var(--primary-blue);
    }

    .tq-stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .tq-service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-xl);
    }

    [dir="ltr"] .tq-why-feature:hover {
        transform: translateX(10px);
        box-shadow: var(--shadow);
    }

    [dir="rtl"] .tq-why-feature:hover {
        transform: translateX(-10px);
        box-shadow: var(--shadow);
    }

    .tq-achievement-card:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow);
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }

    .tq-hero-title {
        font-size: 3.5rem;
    }

    .tq-process-steps {
        gap: 3rem;
    }

    .tq-step-card {
        padding: 2rem;
        min-height: 300px;
    }

    .tq-step-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .tq-step-card p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .tq-step-details span {
        font-size: 0.875rem;
    }
}

/* Extra Large (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .tq-hero-title {
        font-size: 4rem;
    }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    .tq-process-step {
        cursor: pointer;
    }

    .tq-step-card:active {
        transform: scale(0.98);
    }

    /* Remove hover effects on touch devices */
    .tq-step-card:hover {
        transform: none;
    }
}

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

    .tq-process-progress,
    .tq-step-pulse,
    .tq-process-step,
    .tq-step-card {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .tq-hero-bg-wrapper,
    .tq-floating-orbs,
    .tq-particle-canvas,
    .tq-scroll-indicator,
    .tq-cta-section,
    .tq-process-line,
    .tq-process-progress,
    .tq-step-pulse {
        display: none !important;
    }

    .tq-hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .tq-process-section {
        padding: 2rem 0;
    }

    .tq-process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tq-process-step {
        opacity: 1 !important;
        page-break-inside: avoid;
    }

    .tq-step-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}