/* ========================================
   Enhanced Services.css - Complete RTL Support
   Mobile-First Responsive Design
   ======================================== */

/* CSS Variables */
: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%);
    --gradient-soft: linear-gradient(135deg, #f6f5f2 0%, #ffffff 100%);
    --gradient-branding: linear-gradient(135deg, #ff6b6b 0%, #feca57 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);
    --shadow-colored: 0 10px 30px rgba(77, 97, 244, 0.15);

    /* 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;
    --border-radius-xl: 24px;
}

/* Global Reset for Mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile-specific container padding */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* ========================================
   Services Hero Section - Mobile First
   ======================================== */
.tq-services-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 40px;
    background: var(--gradient-primary);
    width: 100%;
}

@media (min-width: 768px) {
    .tq-services-hero {
        min-height: 70vh;
        padding: 100px 0 60px;
    }
}

.tq-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tq-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(215, 254, 124, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(203, 137, 255, 0.2) 0%, transparent 50%);
    animation: tqPulse 10s ease infinite;
}

@keyframes tqPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.tq-pattern-overlay {
    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-floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tq-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

@media (max-width: 768px) {
    .tq-shape {
        filter: blur(30px);
    }
}

.tq-shape-1 {
    width: 100px;
    height: 100px;
    background: var(--primary-lime);
    top: 10%;
    left: 5%;
}

.tq-shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary-purple);
    bottom: 10%;
    right: 5%;
}

.tq-shape-3 {
    width: 80px;
    height: 80px;
    background: var(--secondary-light-blue);
    top: 50%;
    left: 70%;
}

@media (min-width: 768px) {
    .tq-shape-1 {
        width: 200px;
        height: 200px;
        left: 10%;
    }

    .tq-shape-2 {
        width: 300px;
        height: 300px;
        right: 10%;
    }

    .tq-shape-3 {
        width: 150px;
        height: 150px;
    }
}

@keyframes tqFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -20px); }
    66% { transform: translate(-20px, 20px); }
}

.tq-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .tq-hero-content {
        max-width: 900px;
    }
}

.tq-hero-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;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .tq-hero-badge {
        gap: 0.75rem;
        padding: 0.75rem 1.5rem;
        margin-bottom: 2rem;
    }
}

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

@media (min-width: 768px) {
    .tq-badge-icon {
        font-size: 1rem;
    }
}

.tq-hero-badge span:nth-child(2) {
    color: var(--text-white);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .tq-hero-badge span:nth-child(2) {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
}

.tq-hero-title {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .tq-hero-title {
        margin-bottom: 1.5rem;
    }
}

.tq-title-main {
    display: block;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.tq-title-sub {
    display: block;
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--primary-lime);
    opacity: 0.9;
    word-wrap: break-word;
}

.tq-hero-description {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .tq-hero-description {
        line-height: 1.7;
        max-width: 700px;
        margin-bottom: 2.5rem;
        padding: 0;
    }
}

.tq-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

@media (min-width: 768px) {
    .tq-hero-stats {
        gap: 2rem;
        padding: 2rem 0;
    }
}

.tq-stat {
    text-align: center;
    min-width: 80px;
}

.tq-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .tq-stat-number {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
}

.tq-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .tq-stat-label {
        font-size: 0.875rem;
        letter-spacing: 1px;
    }
}

.tq-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s ease infinite;
    transition: opacity 0.3s ease;
    display: none;
}

@media (min-width: 768px) {
    .tq-scroll-indicator {
        display: block;
        bottom: 30px;
    }
}

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

.tq-mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.tq-mouse-icon span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

/* ========================================
   Service Categories Section
   ======================================== */
.tq-categories-section {
    padding: 3rem 0;
    background: var(--text-white);
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .tq-categories-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .tq-categories-section {
        padding: 6rem 0;
    }
}

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

.tq-section-label {
    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.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    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-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tq-category-card {
    position: relative;
    background: var(--secondary-light-gray);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    transition: var(--transition);
    overflow: hidden;
}

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

.tq-category-card.touched {
    transform: scale(0.98);
}

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

.tq-category-card.tq-branding {
    background: var(--gradient-branding);
    color: var(--text-white);
}

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

.tq-card-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    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-category-card:hover .tq-icon-bg {
    transform: rotate(5deg) scale(1.1);
}

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

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

.tq-card-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-category-card.tq-featured .tq-card-badge,
.tq-category-card.tq-branding .tq-card-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

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

.tq-card-description {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.tq-category-card.tq-featured .tq-card-description,
.tq-category-card.tq-branding .tq-card-description {
    color: rgba(255, 255, 255, 0.9);
}

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

.tq-service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

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

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

.tq-category-card.tq-featured .tq-service-list i,
.tq-category-card.tq-branding .tq-service-list i {
    color: var(--primary-lime);
}

.tq-service-list span {
    color: var(--text-light);
}

.tq-category-card.tq-featured .tq-service-list span,
.tq-category-card.tq-branding .tq-service-list span {
    color: rgba(255, 255, 255, 0.9);
}

.tq-card-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-card-link {
    flex-direction: row-reverse;
}

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

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

[dir="ltr"] .tq-card-link i {
    transition: transform 0.3s ease;
}

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

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

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

/* ========================================
   Service Detail Sections - Mobile Optimized
   ======================================== */
.tq-service-detail {
    padding: 3rem 0;
    background: var(--text-white);
    overflow-x: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .tq-service-detail {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .tq-service-detail {
        padding: 6rem 0;
    }
}

.tq-service-detail.tq-alt-bg {
    background: var(--secondary-light-gray);
}

.tq-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 768px) {
    .tq-detail-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
}

.tq-detail-wrapper.tq-reverse {
    flex-direction: column;
}

@media (min-width: 768px) {
    .tq-detail-wrapper.tq-reverse {
        direction: ltr;
    }

    .tq-detail-wrapper.tq-reverse .tq-detail-content {
        order: 2;
    }

    .tq-detail-wrapper.tq-reverse .tq-detail-visual {
        order: 1;
    }

    [dir="rtl"] .tq-detail-wrapper.tq-reverse {
        direction: rtl;
    }
}

.tq-detail-content {
    order: 2;
    padding: 0;
    width: 100%;
}

/* Hide visual elements on mobile */
.tq-detail-visual {
    display: none;
}

@media (min-width: 768px) {
    .tq-detail-visual {
        display: block;
        order: 2;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .tq-detail-content {
        order: 1;
    }
}

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

@media (min-width: 768px) {
    .tq-detail-title {
        margin-bottom: 1.5rem;
    }
}

.tq-detail-description {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .tq-detail-description {
        font-size: 1.125rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
}

/* Section Label */
.tq-section-label {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--primary-lime);
    color: var(--secondary-green);
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .tq-section-label {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
}

/* Service Tabs */
.tq-services-tabs {
    margin-bottom: 2rem;
}

.tq-tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tq-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--secondary-light-gray);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

[dir="rtl"] .tq-tab-btn {
    flex-direction: row-reverse;
    text-align: right;
}

.tq-tab-btn.active {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.tq-tab-btn:hover:not(.active) {
    background: var(--primary-lime);
    color: var(--secondary-green);
}

.tq-tab-btn i {
    font-size: 1.25rem;
}

.tq-tab-content {
    position: relative;
}

.tq-tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tq-tab-pane.active {
    display: block;
    opacity: 1;
}

.tq-tab-pane h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tq-tab-pane p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tq-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.tq-feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

[dir="rtl"] .tq-feature-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.tq-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-lime);
    font-weight: bold;
}

[dir="rtl"] .tq-feature-list li::before {
    left: auto;
    right: 0;
}

/* Tech Stack */
.tq-tech-stack {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(77, 97, 244, 0.1);
}

.tq-tech-stack h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tq-tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tq-tech-item {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--secondary-light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

.tq-tech-item:hover {
    transform: translateY(-5px);
    background: var(--gradient-primary);
    color: var(--text-white);
}

/* Visual Containers - Mobile Hidden */
.tq-visual-container {
    display: none;
}

@media (min-width: 768px) {
    .tq-visual-container {
        display: block;
        position: relative;
        max-width: 500px;
        margin: 0 auto;
        padding: 0;
    }
}

.tq-code-window {
    background: var(--primary-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 100%;
}

@media (min-width: 768px) {
    .tq-code-window {
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-xl);
    }
}

.tq-window-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .tq-window-header {
        gap: 1rem;
        padding: 1rem;
    }
}

.tq-window-dots {
    display: flex;
    gap: 0.35rem;
}

@media (min-width: 768px) {
    .tq-window-dots {
        gap: 0.5rem;
    }
}

.tq-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

@media (min-width: 768px) {
    .tq-window-dots span {
        width: 12px;
        height: 12px;
    }
}

.tq-window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.tq-window-dots span:nth-child(3) {
    background: #28ca42;
}

.tq-window-title {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .tq-window-title {
        font-size: 0.875rem;
    }
}

.tq-code-content {
    padding: 1rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    overflow-x: auto;
    max-width: 100%;
    direction: ltr !important;
}

@media (min-width: 768px) {
    .tq-code-content {
        padding: 1.5rem;
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

.tq-code-content pre {
    margin: 0;
    color: var(--text-white);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.tq-code-content .keyword {
    color: #ff79c6;
}

.tq-code-content .variable {
    color: #50fa7b;
}

.tq-code-content .property {
    color: #8be9fd;
}

.tq-code-content .string {
    color: #f1fa8c;
}

.tq-code-content .method {
    color: #bd93f9;
}

/* Enhanced Marketing Visual - Mobile Hidden */
.tq-marketing-visual {
    display: none;
}

@media (min-width: 768px) {
    .tq-marketing-visual {
        display: block;
        position: relative;
        max-width: 500px;
        margin: 0 auto;
    }
}

.tq-stats-dashboard {
    background: var(--text-white);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: 0 10px 25px rgba(77, 97, 244, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .tq-stats-dashboard {
        border-radius: var(--border-radius-lg);
        padding: 2rem;
        box-shadow: 0 25px 50px rgba(77, 97, 244, 0.15);
        margin-bottom: 2rem;
    }
}

.tq-stats-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

@media (min-width: 768px) {
    .tq-stats-dashboard::before {
        height: 4px;
    }
}

.tq-dashboard-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .tq-dashboard-header {
        gap: 0.75rem;
        margin-bottom: 2rem;
        font-size: 1.125rem;
    }
}

.tq-dashboard-header i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .tq-dashboard-header i {
        font-size: 1.5rem;
    }
}

.tq-chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(77, 97, 244, 0.05) 0%, transparent 100%);
    border-radius: var(--border-radius-sm);
}

@media (min-width: 768px) {
    .tq-chart-container {
        height: 180px;
        margin-bottom: 1.5rem;
        padding: 1rem;
        border-radius: var(--border-radius);
    }
}

.tq-chart-bar {
    width: 35px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 3px 10px rgba(77, 97, 244, 0.2);
}

@media (min-width: 768px) {
    .tq-chart-bar {
        width: 50px;
        box-shadow: 0 5px 15px rgba(77, 97, 244, 0.2);
    }
}

.tq-chart-bar:hover {
    transform: scaleY(1.05);
    box-shadow: 0 5px 15px rgba(77, 97, 244, 0.3);
}

@media (min-width: 768px) {
    .tq-chart-bar:hover {
        box-shadow: 0 8px 20px rgba(77, 97, 244, 0.3);
    }
}

.tq-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--text-white);
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .tq-bar-value {
        top: -35px;
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
        box-shadow: var(--shadow);
    }
}

.tq-chart-labels {
    display: flex;
    justify-content: space-around;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 0 0.75rem;
}

@media (min-width: 768px) {
    .tq-chart-labels {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
}

.tq-social-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .tq-social-cards {
        gap: 1rem;
    }
}

.tq-social-card {
    padding: 1rem 0.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .tq-social-card {
        padding: 1.25rem 0.75rem;
        border-radius: var(--border-radius-lg);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
}

.tq-social-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: var(--transition);
}

.tq-social-card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .tq-social-card:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

.tq-social-card:hover::before {
    transform: rotate(45deg) translateY(100%);
}

.tq-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.tq-tiktok {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.tq-linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.tq-social-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .tq-social-card i {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

.tq-social-card span {
    font-size: 0.875rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .tq-social-card span {
        font-size: 1.125rem;
    }
}

/* Service Grid - Mobile Optimized */
.tq-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .tq-service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.tq-service-item {
    padding: 1rem;
    background: var(--text-white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .tq-service-item {
        padding: 1.5rem;
        border-radius: var(--border-radius-lg);
    }
}

.tq-service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--text-white) 0%, rgba(77, 97, 244, 0.02) 100%);
}

@media (min-width: 768px) {
    .tq-service-item:hover {
        transform: translateY(-5px);
    }
}

.tq-service-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .tq-service-item-header {
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
}

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

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

@media (min-width: 768px) {
    .tq-item-icon {
        width: 50px;
        height: 50px;
        border-radius: var(--border-radius);
        font-size: 1.25rem;
    }
}

.tq-service-item:hover .tq-item-icon {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: var(--text-white);
}

.tq-service-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .tq-service-item h4 {
        font-size: 1.25rem;
    }
}

.tq-service-item p {
    color: var(--text-light);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 0;
}

@media (min-width: 768px) {
    .tq-service-item p {
        font-size: 0.875rem;
        line-height: 1.6;
        padding-left: 60px;
    }
}

[dir="rtl"] .tq-service-item p {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    [dir="rtl"] .tq-service-item p {
        padding-left: 0;
        padding-right: 60px;
    }
}

/* Results Showcase - Mobile Optimized */
.tq-results-showcase {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .tq-results-showcase {
        margin-top: 2rem;
        padding: 2rem;
        border-radius: var(--border-radius-xl);
    }
}

.tq-results-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.tq-results-showcase h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .tq-results-showcase h4 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

.tq-results-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) {
    .tq-results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.tq-result-item {
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .tq-result-item {
        padding: 1rem;
    }
}

.tq-result-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.tq-result-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .tq-result-value {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
}

.tq-result-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .tq-result-label {
        font-size: 0.875rem;
        letter-spacing: 1px;
    }
}

/* Branding Visual - Mobile Hidden */
.tq-branding-visual {
    display: none;
}

@media (min-width: 768px) {
    .tq-branding-visual {
        display: block;
        position: relative;
        max-width: 500px;
        margin: 80px auto;
    }
}

.tq-brand-mockup {
    background: var(--gradient-soft);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tq-brand-logo-display {
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    background: var(--gradient-branding);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-white);
    position: relative;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.tq-brand-logo-display::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-branding);
    border-radius: var(--border-radius-lg);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.tq-color-palette {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tq-color-swatch {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.tq-color-swatch:hover {
    transform: scale(1.2) rotate(-5deg);
    box-shadow: var(--shadow-lg);
}

.tq-color-1 { background: #ff6b6b; }
.tq-color-2 { background: #4ecdc4; }
.tq-color-3 { background: #45b7d1; }
.tq-color-4 { background: #feca57; }
.tq-color-5 { background: #5f27cd; }

.tq-brand-applications {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tq-brand-app {
    padding: 1.5rem;
    background: var(--text-white);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.tq-brand-app i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.tq-brand-app span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Enhanced Production Showcase - Mobile Hidden */
.tq-production-showcase {
    display: none;
}

@media (min-width: 768px) {
    .tq-production-showcase {
        display: block;
        position: relative;
        max-width: 500px;
        margin: 40px auto;
        padding: 2rem;
    }
}

.tq-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .tq-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.tq-showcase-item {
    aspect-ratio: 16/9;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (min-width: 480px) {
    .tq-showcase-item {
        aspect-ratio: 1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

.tq-showcase-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    transition: var(--transition);
}

.tq-item-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    grid-column: span 1;
}

.tq-item-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.tq-item-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.tq-item-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    grid-column: span 1;
}

@media (min-width: 480px) {
    .tq-item-1,
    .tq-item-4 {
        grid-column: span 2;
    }
}

.tq-showcase-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .tq-showcase-item:hover {
        transform: scale(1.05) rotate(-2deg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

.tq-showcase-item:hover::before {
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* Always visible overlay with icons */
.tq-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition);
}

.tq-showcase-item:hover .tq-item-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.tq-item-overlay i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .tq-item-overlay i {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }
}

.tq-showcase-item:hover .tq-item-overlay i {
    transform: scale(1.2);
    opacity: 1;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.3); }
}

.tq-item-overlay span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .tq-item-overlay span {
        font-size: 0.875rem;
    }
}

.tq-showcase-badge {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--text-white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(77, 97, 244, 0.2);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .tq-showcase-badge {
        bottom: -1rem;
        padding: 0.75rem 1.5rem;
        gap: 0.5rem;
        font-size: 0.875rem;
        box-shadow: 0 10px 30px rgba(77, 97, 244, 0.2);
    }
}

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

@media (min-width: 768px) {
    .tq-showcase-badge i {
        font-size: 1.25rem;
    }
}

/* Production Services */
.tq-production-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.tq-card-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
}

.tq-production-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tq-service-features {
    list-style: none;
    text-align: left;
}

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

.tq-service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

[dir="rtl"] .tq-service-features li {
    padding-left: 0;
    padding-right: 1.5rem;
}

.tq-service-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-lime);
}

[dir="rtl"] .tq-service-features li::before {
    left: auto;
    right: 0;
}

/* Equipment Showcase */
.tq-equipment-showcase {
    margin-top: 2rem;
}

.tq-equipment-showcase h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tq-equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tq-equipment-item {
    padding: 0.5rem 1rem;
    background: var(--primary-lime);
    color: var(--secondary-green);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.tq-why-services {
    padding: 4rem 0;
    background: var(--secondary-light-gray);
}

.tq-advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tq-advantage-card {
    padding: 2rem;
    background: var(--text-white);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
}

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

.tq-advantage-card.touched {
    transform: scale(0.98);
}

.tq-advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-lime);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-green);
}

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

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

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

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

/* Small Tablets (640px+) */
@media (min-width: 640px) {
    .tq-hero-stats {
        gap: 3rem;
    }

    .tq-categories-grid {
        grid-template-columns: 1fr;
    }

    .tq-tab-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .tq-production-services {
        grid-template-columns: 1fr;
    }

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

/* Tablets (768px+) */
@media (min-width: 768px) {
    .tq-services-hero {
        min-height: 80vh;
        padding: 120px 0 80px;
    }

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

    .tq-detail-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .tq-detail-wrapper.tq-reverse {
        direction: ltr;
    }

    .tq-detail-wrapper.tq-reverse .tq-detail-content {
        order: 2;
    }

    .tq-detail-wrapper.tq-reverse .tq-detail-visual {
        order: 1;
    }

    [dir="rtl"] .tq-detail-wrapper.tq-reverse {
        direction: rtl;
    }

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

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .tq-services-hero {
        min-height: 100vh;
    }

    .tq-categories-section,
    .tq-service-detail,
    .tq-why-services {
        padding: 6rem 0;
    }

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

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

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

    /* Hover effects for desktop */
    @media (hover: hover) {
        .tq-showcase-item:hover {
            transform: scale(1.1) rotate(-2deg);
        }

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

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .tq-hero-content {
        max-width: 1000px;
    }

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

    .tq-title-sub {
        font-size: 2.5rem;
    }
}

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .tq-category-card,
    .tq-advantage-card,
    .tq-production-card {
        cursor: pointer;
    }
}

/* Print Styles */
@media print {
    .tq-hero-background,
    .tq-floating-shapes,
    .tq-scroll-indicator,
    .tq-cta-bg {
        display: none !important;
    }

    .tq-services-hero {
        min-height: auto;
        padding: 2rem 0;
        background: none;
        color: var(--text-primary);
    }

    .tq-hero-title,
    .tq-hero-description {
        color: var(--text-primary) !important;
    }
}