/*
|==================================================================================================
| REORGANIZED CSS STRUCTURE (Based on HTML Flow)
|==================================================================================================
|
| 1. Root Variables & Theme Configuration
| 2. Basic Reset & Global Typography
| 3. Modals & Overlays (Initial HTML Elements)
| 4. Header & Navigation (#header, #main-nav)
| 5. Compact Process Steps (.translation-process-compact)
| 6. Hero Section & Form (#hero, .form-container)
| 7. Secondary Sections (Why Us, Stats, Reviews)
| 8. Detailed Process Steps (#how-it-works-detail)
| 9. Documents & Languages (#documents, #languages-section)
| 10. Comparison Table (#translation-comparison)
| 11. FAQ (#faq)
| 12. Trusted By (#trusted-by)
| 13. Footer (#footer)
| 14. Global Utilities & Animations
| 15. Services
| 16. overwrites
|==================================================================================================
*/


/* ===============================================================================================
   PART 1: ROOT VARIABLES & THEME CONFIGURATION
   =============================================================================================== */

:root {
/* Part 1.a: Light theme variables (Default) */
    --color-primary: #0067ff;
    --color-primary-dark: #004bba;
    --color-secondary: #1e3a8a;
    --color-accent: #00ccff;
    --color-surface: #ffffff;
    --color-bg: #f8fafc;
    --color-text: #1e293b;
    --color-opo-text: #f1f5f9;
    --color-muted-text: #64748b;
    --color-border: #cbd5e1;
    --color-highlight: #facc15;
    --color-success: #00ff66;
    --color-upload-border: #93c5fd;
    --color-light: #f1f5f9;
    --color-surface-rgb: 255, 255, 255;
    --color-red: red;
    /* New: For Overlays/Modals */
    --color-overlay-bg: rgba(0, 0, 0, 0.7);
    --color-surface-semi-transparent: rgba(255, 255, 255, 0.9);
    --logo-color-elements: #0067ff;
}

/* Part 1.b: Dark Mode Preference */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #0067ff;
        --color-primary-dark: #004bba;
        --color-secondary: #1e3a8a;
        --color-accent: #00ccff;
        --color-surface: #1e293b;
        --color-bg: #0f172a;
        --color-text: #f1f5f9;
        --color-opo-text: #1e293b;
        --color-muted-text: #94a3b8;
        --color-border: #475569;
        --color-highlight: #facc15;
        --color-success: #00ff66;
        --color-upload-border: #60a5fa;
        --color-light: #334155;
        --color-surface-rgb: 30, 41, 59;
        /* New: For Overlays/Modals */
        --color-overlay-bg: rgba(0, 0, 0, 0.7);
        --color-surface-semi-transparent: rgba(30, 41, 59, 0.9);
        --logo-color-elements: #00ccff;
    }
}

/* Part 1.c: Manual theme override (class-based) */
:root.light-theme {
    --color-primary: #0067ff;
    --color-primary-dark: #004bba;
    --color-secondary: #1e3a8a;
    --color-accent: #00ccff;
    --color-surface: #ffffff;
    --color-bg: #f8fafc;
    --color-text: #1e293b;
    --color-opo-text: #f1f5f9;
    --color-muted-text: #64748b;
    --color-border: #cbd5e1;
    --color-highlight: #facc15;
    --color-success: #00ff66;
    --color-upload-border: #93c5fd;
    --color-light: #f1f5f9;
    --color-surface-rgb: 255, 255, 255;
    --color-surface-semi-transparent: rgba(255, 255, 255, 0.9);
    --logo-color-elements: #0067ff;
}

:root.dark-theme {
    --color-primary: #0067ff;
    --color-primary-dark: #004bba;
    --color-secondary: #1e3a8a;
    --color-accent: #00ccff;
    --color-surface: #1e293b;
    --color-bg: #0f172a;
    --color-text: #f1f5f9;
    --color-opo-text: #1e293b;
    --color-muted-text: #94a3b8;
    --color-border: #475569;
    --color-highlight: #facc15;
    --color-success: #00ff66;
    --color-upload-border: #60a5fa;
    --color-light: #334155;
    --color-surface-semi-transparent: rgba(30, 41, 59, 0.9);
    --logo-color-elements: #00ccff;
}


/* ===============================================================================================
   PART 2: BASIC RESET & GLOBAL TYPOGRAPHY
   =============================================================================================== */

/* Part 2.a: Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Merriweather", serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Part 2.b: Section Headings */
section {
    padding: 4rem 8%;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.logo-svg{

    margin-right:0.5rem;
}

/* Part 3.b: Upload Info Overlay (#upload-info-overlay) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
    /* FIX: Ensure scrolling works on fixed overlay container */
    padding: 20px 0;
    overflow-y: auto;
}

.overlay.open {
    visibility: visible;
    opacity: 1;
}

.modal-content-info {
    background: var(--color-surface-semi-transparent);
    color: var(--color-text);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: left;
    backdrop-filter: blur(10px);
    /* FIX: Max height and internal scrolling for mobile */
    max-height: 95vh;
    overflow-y: auto;
}

.modal-content-info h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content-info h4 {
    color: var(--color-accent);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-content-info .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 5px;
}

.accepted-file-list,
.limits-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.accepted-file-list li,
.limits-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.accepted-file-list li i,
.limits-list li i {
    color: var(--color-accent);
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.note {
    font-style: italic;
    font-size: 0.9em;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border);
}

/* ===============================================================================================
   PART 4: HEADER & NAVIGATION (header, #main-nav)
   =============================================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    padding: 1rem 8%;
    background: transparent;
    transition: 0.3s;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(var(--color-surface-rgb), 0.7);
    color: var(--color-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Part 4.a: Header Top Row (Logo, Toggle, Menu Button) */
.header-top-row {
    display: flex;
    justify-content: space-between; /* Logo left, toggles right */
    align-items: center;
    width: 100%;
    padding-bottom: 0.5rem; /* Space between logo/toggles and nav links */
}

/* Part 4.b: Navigation Links Container (Mobile: Column, Hidden by Default) */
#main-nav {
    display: none;
    width: 100%;
    flex-direction: column; /* FORCES LINKS TO STACK VERTICALLY IN MOBILE */
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

#main-nav.active {
    display: flex;
}

#main-nav a {
    padding: 0.5rem 0;
    font-weight: 600;
    transition: color 0.3s;
    text-align: left;
    margin: 0;
}

#main-nav a:hover {
    color: var(--color-primary-dark);
}

/* Container for theme/menu toggles */
.nav-right-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0; /* No margin-top needed now that it's in the top row */
}

/* Part 4.c: Theme Toggle & Menu Button Styles */


/* ------------------------------------------------------------- */
/* Theme Toggle Slider Switch (Apple Style) */
/* ------------------------------------------------------------- */

/* ------------------------------------------- */
/* THEME TOGGLE (Slider Switch) */
/* ------------------------------------------- */
.theme-toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--color-light); /* Off state background (Light Theme) */
    border-radius: 30px;
    cursor: pointer;
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

/* 1. Dark mode ON state (Background and Border change) */
:root.dark-theme .theme-toggle-switch {
    background-color: var(--color-bg); /* On state background (Dark Theme) */
    border-color: var(--color-light);
}

:root.dark-theme .theme-toggle-switch:hover{
    background-color: var(--color-primary);
}

.slider-circle {
    position: absolute;
    /* NOTE: The actual HTML structure is assumed to be: <button><i class="icon"></i><span class="slider-circle-handle"></span></button>
       Since the class in the provided CSS is `.slider-circle`, I'm matching that here:
    */
    height: 22px;
    width: 22px;
    background-color: white;
    border-radius: 50%;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 1; /* Above icon */
}

/* 2. Move slider for dark mode (ON state) */
:root.dark-theme .slider-circle {
/* Translate handle to the right */
    transform: translateX(28px);
    left: 2px;
    background-color: var(--color-surface);
}

/* Icon (Moon) Styling - Positioned opposite the handle for visibility */
.theme-icon-slider {
    position: absolute;
    left: 50%; /* Center point */
    top: 50%;
    font-size: 14px;
    /* Light Mode (OFF): handle is LEFT, icon moves RIGHT (+15px) */
    transform: translate(-50%, -50%) translateX(15px);
    color: var(--color-text); /* Default color */
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 0;
}

/* 3. Dark mode ON icon color and position */
:root.dark-theme .theme-icon-slider {
/* Dark Mode (ON): handle is RIGHT, icon moves LEFT (-15px) */
    transform: translate(-50%, -50%) translateX(-15px);
    color: var(--color-highlight);
}

/* Hamburger Menu Button */
#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.5rem;
    padding: 8px;
}

/* Part 4.d: Desktop Media Queries (800px+) */
@media(min-width:800px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 8%;
    }

    .header-top-row {
        width: auto;
        padding-bottom: 0;
    }

    /* Hide the menu toggle button on desktop */
    #menu-toggle {
        display: none;
    }

    #main-nav {
        display: flex;
        flex-direction: row; /* Desktop: Links side-by-side */
        align-items: center;
        justify-content: flex-end;
        width: auto;
        border-top: none;
        padding-top: 0;
        flex-grow: 1;
    }

    #main-nav a {
        margin-left: 1.5rem;
        padding: 0;
    }

    #theme-toggle {
        margin-left: 1.5rem;
    }

    .nav-right-container {
        margin-top: 0;
        margin-left: 1.5rem;
        justify-content: flex-end;
    }
}

/* Part 4.e: Mobile Media Queries (Cleanup) */
@media(max-width:799px) {
    .header-top-row {
        padding-bottom: 0;
    }
    /* No need to hide .nav-right-container anymore, it's correctly placed in top row */
    header .header-top-row {
        justify-content: space-between;
    }
}


/* ===============================================================================================
   PART 5: COMPACT PROCESS STEPS (section .translation-process-compact)
   =============================================================================================== */

.translation-process-compact {
    padding-top: 0px;
    padding-bottom: 20px;
    margin-bottom: 0px;
    margin-top: 0px;
}

.step-container-compact {
    list-style: none;
    padding: 0 8%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: relative;
    max-width: 1200px;
}

/* Continuous Gradient Timeline Line */
.step-container-compact::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 8%;
    right: 8%;
    height: 2px;
    z-index: 0;
    background: linear-gradient(to right, var(--color-accent), var(--color-primary));
}

.step-item-compact {
    flex: 1 0 24%;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 5px;
    text-align: center;
}

.step-item-compact:not(:last-child)::after {
    content: none;
}

.step-number-compact {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 3px;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--color-bg);
    flex-shrink: 0;
    text-align: center;
}

.step-text-compact {
    font-size: 0.75em;
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
    line-height: 1.1;
}

/* NEW MOBILE ADJUSTMENTS for EDGE-TO-EDGE DISPLAY */
@media (max-width: 800px) {
/* 1. Override global section padding for this specific section */
    .translation-process-compact {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. Remove padding on the container so the horizontal scroll is flush with screen edges */
    .step-container-compact {
        padding: 0;
    }

    /* 3. Extend the timeline line to the full width */
    .step-container-compact::before {
        left: 0;
        right: 0;
    }

    /* 4. Add padding back to the first and last step item for visual spacing */
    .step-container-compact .step-item-compact:first-child {
        padding-left: 1rem;
    }
    .step-container-compact .step-item-compact:last-child {
        padding-right: 1rem;
    }
}

/* ===============================================================================================
   PART 6: HERO SECTION & FORM (#hero, .form-container)
   =============================================================================================== */

/* Part 6.a: Hero Container & Text */
.hero {
    color: var(--color-text);
    display: flex;
    flex-wrap: wrap;
    border-radius: 20px;
    justify-content: space-between;
    text-align: left;
    padding: 2rem 8%;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    text-align: left;
    padding-right: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-text h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 500px;
}
        .hero-badge{

    display: inline-block; vertical-align: top; margin: 5px auto 5px 0px; text-align: left;
}

/* Part 6.b: Form Container */
.form-container {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
   /* backdrop-filter: blur(15px);*/
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    flex: 0 1 400px;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
/* Modal Style */
#progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.modal-content h3 {
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content #global-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.modal-content #global-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.modal-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
}

/* Part 6.c: Success Card */
#success-card {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: none;
}

#success-card h2 {
    color: var(--color-success);
    margin-bottom: 0.5rem;
}

/* Part 6.d: Form Controls & UI */
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0.75rem 0.25rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    font-size: 1rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.form-group label{
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    pointer-events: none;
    transition: 0.3s ease all;
    color: #000 !important;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -1.5rem;
    font-size: 0.8rem;
    color: #fff;
}

/* Languages side by side */
.languages {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.languages>div {
    flex: 1;
    position: relative;
}

/* Searchable dropdown */
.dropdown-list {
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    display: none;
    position: absolute;
    z-index: 100;
    width: 100%;
}

.dropdown-list div {
    padding: 0.5rem;
    cursor: pointer;
}

.dropdown-list div:hover {
    background: #e0f2fe;
}

/* Part 6.e: Upload Box & Previews */
.upload-box {
    border: 2px dashed #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-box.dragover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: scale(1.02);
}

/* Upload Info Button Styling */
.upload-info-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    align-self: flex-start;
}

.upload-info-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

/* File Previews/Progress Container */
.upload-previews {
    margin-top: 0.5rem;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

/* Individual File Progress Item (Fixed for long names) */
.upload-previews .file-progress-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

.file-info-bar {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 2px;
}

.file-name {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.file-name i {
    margin-right: 5px;
}

.file-remove {
    cursor: pointer;
    color: #ef4444;
    transition: color 0.2s;
    margin-left: 10px;
    flex-shrink: 0;
}

.file-remove:hover {
    color: #b91c1c;
}

.file-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

/* Part 6.f: Buttons & Messages (unchanged) */
button {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message {

    text-align: center;
}

.message.success {
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: #10b981;
    color: white;
}

.message.error {
    background: #ef4444;
    color: white;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.message.info {
    color: white;
}
.sale-button{
    background: #ef4444;
    color: white;
    font-weight: 600;
    text-align: center;

}

/* --- Mobile Adjustments for Hero/Form (Max Width 600px) --- */
@media (max-width: 600px) {
/* 1. Smaller H1 */
    .hero-text h1 {
        font-size: 2rem;
    }

    /* 2. Smaller Iframe (Using !important to override HTML inline styles) */
    .hero-text iframe {
        height: 200px !important;
        width: 200px !important;
        /* Center content when it collapses to single column */
        display: block;
        margin: 0 auto 1rem;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
    }

    /* 3. Less Padding in Form Container */
    .form-container {
        padding: 0.75rem;
    }

    /* Adjust upload box for better fit on small screens */
    .upload-box {
        flex-direction: column;
        padding: 0.75rem;
    }
}
/* ===============================================================================================
   PART 7: SECONDARY SECTIONS (Why Us, Stats, Reviews)
   =============================================================================================== */

/* Part 7.a: Why Us (#why-us) */
#why-us {
    background: var(--color-bg);
}

.why-us-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Desktop Default */
    gap: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.why-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.why-card h3 {
    margin-bottom: 0.5rem;
}

/* Part 7.b: Stats (#stats) */
#stats {
    background: var(--color-secondary);
    color: #fff;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Desktop Default */
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--color-highlight);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
}

/* Part 7.c: Reviews (#reviews) */
#reviews {
    background: var(--color-bg);
    padding: 4rem 8%; /* Default Desktop Padding */
    text-align: center;
}

/* Reviews Header for Title and Arrows */
.reviews-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.reviews-header h2 {
    margin-bottom: 0;
}

.reviews-nav-desktop {
    margin-left: 2rem;
    display: none; /* Hidden by default, shown on desktop */
}

.nav-arrow-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
    transition: background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav-arrow-btn:hover {
    background: var(--color-primary-dark);
}


.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Desktop Grid Default */
    gap: 2rem;
    margin-top: 2rem;
    overflow-x: hidden; /* Hide scrollbar on desktop */
}

.review-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.review-card h3 {
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.review-card p {
    font-style: italic;
    color: var(--color-text);
}

.review-card .stars {
    color: var(--color-highlight);
    margin-bottom: 0.5rem;
}

/* --- Responsive Adjustments --- */

/* Desktop only adjustments (Min Width 769px) */
@media (min-width: 769px) {
/* Show desktop nav buttons */
    .reviews-nav-desktop {
        display: flex;
    }
    /* Align header content to the left/right of the main content area */
    .reviews-header {
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto 2rem;
    }
}


/* Mobile Specific Adjustments (Max Width 768px) */
@media (max-width: 768px) {
/* FIX 1: Reduce overall side padding for the section */
    #why-us {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* 1. Why Us & Stats: 2 cards per row on mobile */
    .why-us-cards,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem; /* Reduced spacing/gap */
        /* Cards stretch to equal height by default, fixing misalignment */
    }

    /* Why Card: Reduced Padding */
    .why-card {
        padding: 1rem;
    }

    /* Why Card Icons: Reduced Size (from FA 3x) */
    .why-card i {
        font-size: 2rem !important;
    }

    /* 2. Reviews: Enable horizontal scroll (must remove padding on section first) */
    #reviews {
        padding-left: 0;
        padding-right: 0;
    }

    /* Hide desktop nav buttons on mobile */
    .reviews-nav-desktop {
        display: none;
    }

    /* Center the title on mobile */
    .reviews-header {
        justify-content: center;
    }

    .reviews-grid {
    /* Override grid for mobile scroll */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 0 8%; /* Padding added back to the content inside the scroll container */

        /* Hide scrollbar visually but maintain functionality */
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .reviews-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    /* Review Card: Set width to roughly 2 per screen (45vw) */
    .review-card {
        flex: 0 0 45vw; /* Set width to 45% of viewport width */
        min-width: 250px; /* Ensure a minimum size */
        scroll-snap-align: start;
    }
}
/* ===============================================================================================
   PART 8: DETAILED PROCESS STEPS (#how-it-works-detail)
   =============================================================================================== */

#how-it-works-detail {
    background: var(--color-bg);
}

.steps-detail-grid {
    display: grid;
    /* Default: 1 column (overridden below) */
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    margin: 0 auto;
    max-width: 1200px;
}

/* Tablet (Medium screens - 2 columns) */
@media(min-width: 650px) {
    .steps-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (Large screens - 3 columns) */
@media(min-width: 1000px) {
    .steps-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Base Step Detail Card */
.step-detail {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-detail .step-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-detail .step-header h3 {
    color: var(--color-primary);
    margin-bottom: 0;
    margin-left: 1rem;
    font-size: 1.2rem;
}

/* Override h3 color for the highlighted cards */
.delivery-step .step-header h3,
.certification-step .step-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.delivery-step h3, .certification-step h3{
    margin-bottom: 1rem;
}

/* Icon Styling for Steps 5 & 6 (Desktop Default) */
.delivery-icons, .delivery-icons-highlight {
    display: block;
    font-size: 2rem;
}

.delivery-icons i {
    color: #ffff;
}
.delivery-icons-highlight i {
    color: var(--color-highlight);
}
.step-header .step-number-compact{
    box-shadow:none !important;
}

/* --- New Mobile Specific Overrides (Max Width 649px) --- */
@media (max-width: 649px) {
/* 1. Reverted to 1 column on smallest mobile screens for better readability */
    .steps-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Increased gap for better spacing */
    }

    /* 2. Retained reduced padding on cards */
    .step-detail {
        padding: 1rem;
    }

    /* 3. Retained reduced size of step number and title (Steps 1-4) */
    .step-detail .step-header h3 {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .step-detail .step-header .step-number-compact {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.9em;
        flex-shrink: 0;
    }

    /* 4. Retained reduced size of delivery icons (Steps 5 & 6) */
    .delivery-icons, .delivery-icons-highlight {
        font-size: 1.5rem;
    }

    .delivery-step h3, .certification-step h3 {
        font-size: 1rem;
    }
}
/* ===============================================================================================
   PART 9: DOCUMENTS & LANGUAGES (#documents, #languages-section)
   =============================================================================================== */

/* Part 9.a: Documents Section (Mobile: 2 cards per row) */
.documents {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    text-align: left;
    margin-top: 2rem;
}

.document-item {
    background: var(--color-surface);
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.document-item i {
    color: var(--color-primary);
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Part 9.b: Languages List (Vertical Collapse/Expand using CSS Grid) */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop default: 3 columns */
    gap: 0.5rem 2rem;
    margin: 1rem auto 0 auto;
    text-align: left;
    max-width: 1200px;

    /* --- Collapse Logic: This clips the list --- */
    max-height: 300px; /* Initial clipped height */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    position: relative; /* Needed for the gradient fade */
}

/* Fade out effect when collapsed */
.language-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, var(--color-bg), rgba(var(--color-bg-rgb), 0));
    pointer-events: none; /* Allows clicks to pass through */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Expanded state (JS toggles this class to show all content) */
.language-grid.expanded {
    max-height: 2000px; /* Large enough height to show all content */
}

/* Hide the fade effect when expanded */
.language-grid.expanded::after {
    opacity: 0;
}

.language-item {
    padding: 0.25rem 0;
    font-size: 1em;
}

.language-item::before {
    content: '✔';
    color: var(--color-primary) !important;
    margin-right: 0.5rem;
}

/* Media Query Overrides (Language Grid) */
@media (max-width: 768px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet/Mobile: 2 columns */
        padding: 0 1rem;
    }

    /* Override for Documents on Mobile to 2 columns */
    .documents {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
/* ===============================================================================================
   PART 10: COMPARISON TABLE (#translation-comparison)
   =============================================================================================== */

#translation-comparison{
    background:var(--color-surface);
}

.table-wrapper {
    padding: 2rem 1rem;
    overflow-x: auto;
}

.table-responsive {
    max-width: 900px;
    margin: auto;
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    text-align: left;
}

.table th,
.table td {
    padding: 1rem;
    vertical-align: middle;
}

.table th p {
    margin: 0.25rem 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table tr {
    border-bottom: 1px solid var(--color-border);
}

.certified-column {
    background-color: var(--color-bg);
    border-radius: 4px;
}
.certified-column h3{
    color:var(--color-highlight);
}

.lightText {
    color: var(--color-muted-text);
}

.smallText {
    font-size: 0.875rem;
    line-height: 1.4;
    display: block;
    margin-top: 0.25rem;
}

.check-icon {
    color: var(--color-success);
    font-size: 1.1rem;
}

.cross-icon {
    color: #dc3545;
    font-size: 1.1rem;
}

/* Info icon button */
.info-icon {
    background: var(--color-primary);
    color: var(--color-surface);
    border: none;
    cursor: pointer;
    margin-left: 0.35rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    line-height: 1;
}

.info-icon:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

/* Tooltip (Pop-up) Styles */
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background: var(--color-surface-semi-transparent);
    color: var(--color-text);
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.info-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--color-surface-semi-transparent) transparent transparent transparent;
    opacity: 0;
    transition: all 0.25s ease;
}

.info-icon:hover::after,
.info-icon:hover::before,
.info-icon.active::after,
.info-icon.active::before {
    opacity: 1;
    visibility: visible;
    bottom: 140%;
}

@media(max-width:768px) {
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }

    .info-icon::after {
        width: 180px;
    }
}


/* ===============================================================================================
   PART 11: FAQ SECTION (#faq)
   =============================================================================================== */

#faq {
    background: var(--color-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question::after {
    content: '\25B6';
    font-size: 0.8em;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '\25BC';
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding-top: 0.5rem;
}

.faq-answer p {
    padding: 0 0 1rem 0;
    color: var(--color-text);
}


/* ===============================================================================================
   PART 12: INDUSTRIES / TRUSTED BY (#trusted-by)
   =============================================================================================== */

#trusted-by {
    text-align: center;
    padding: 40px 20px;
}

#trusted-by h2 {
    margin-bottom: 25px;
    font-size: 1.8em;
    color: var(--color-text);
}

.industry-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.industry-list li {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background: var(--color-surface);
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1em;
    transition: transform 0.3s ease;
}

.industry-list li:hover {
    transform: scale(1.05);
    color: var(--color-primary-dark);
}


/* ===============================================================================================
   PART 13: FOOTER (#contact)
   =============================================================================================== */

footer {
    color: var(--color-text);
    padding: 3rem 8%;
    text-align: left;
    border-top:1px solid var(--color-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.footer-col ul {
    padding: 0;
}

.footer-col li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-col a {
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-col a i {
    margin-right: 0.5rem;
}


/* ===============================================================================================
   PART 14: GLOBAL UTILITIES & ANIMATIONS
   =============================================================================================== */

.box-shadow{
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

/* Colors for Why Us icons */
.highlight-color{
    color:var(--color-highlight);
}
.primary-color{
    color:var(--color-primary);
}
.accent-color{
    color:var(--color-accent);
}
.success-color{
    color:var(--color-success);
}

/* Colors for Step 5 & 6 */
.white-color{
    color: #fff;
}
.gradient{
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

/* Fade-in Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================================================================
PART 15: Services
=============================================================================================== */
.info-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    align-items: center;
    text-align: left;
}

.video-wrapper{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);

}

.video-wrapper iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.info-text h3{
    color: var(--color-primary-dark);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
        .ul-info{
    list-style: none; padding-left: 0;
}

/* ===============================================================================================
   PART 16: Overwrites
   =============================================================================================== */

.tal{
    text-align:left;
}

.primary-color{
    color:var(--color-primary);
}
/* ===============================================================================================
   PART 17: PRICING
   =============================================================================================== */
#pricing .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
}

.pricing-intro-text {
    max-width: 750px;
    margin: 0.5rem auto 3rem;
    color: var(--color-muted-text);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    text-align: left;
}

.pricing-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 12px;
    position: relative; /* CRITICAL: Allows absolute positioning of the discount badge */
    overflow: hidden;
}

/* --- NEW SITEEWIDE DISCOUNT BADGE --- */
.sitewide-discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-red); /* Yellow/Highlight color */
    color: #fff;
    font-weight: 700;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-bottom-right-radius: 8px; /* Clean corner cutoff */
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    z-index: 10;
}

.pricing-card-simple {
    border-top: 5px solid var(--color-red);
}

.pricing-card-complex {
    border-top: 5px solid var(--color-accent);
}

.price-item-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.price-item-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.pricing-card-simple h3 {
    color: var(--color-red);
}

.pricing-card-complex h3 {
    color: var(--color-accent);
}

.price-item-header p {
    font-size: 0.95rem;
    color: var(--color-muted-text);
}

#pricing hr {
    border: 0;
    height: 1px;
    background: var(--color-border);
    margin: 1.5rem 0;
}

.price-details {
    margin-bottom: 0.5rem;
}

.price-row {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-row-highlight {
    background: var(--color-light);
    padding: 0.75rem;
    border-radius: 6px;
}

.price-label {
    font-weight: 600;
    font-size: 1.1rem;
    flex-grow: 1;
}

/* --- PRICE VALUE STYLING --- */
.price-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align prices to the right */
    margin-left: 1rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--color-red);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: -5px; /* Pull the slashed price closer to the current price */
}

.current-price.price-value {
/* Ensures the current price remains the large, prominent one */
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0; /* Override margin from .price-value if needed */
}

/* Existing price value classes now only apply color/size to .current-price */
.price-value-primary {
    color: var(--color-primary);
}

.price-value-dark {
    color: var(--color-primary-dark);
}

.discount-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 1rem;
}

.discount-badge-simple {
    background: var(--color-success);
    color: white;
}

.discount-badge-complex {
    background: var(--color-accent);
    color: white;
}

.pricing-footer-text {
    font-size: 0.9rem;
    color: var(--color-muted-text);
    text-align: center;
}

.pricing-cta-container {
    text-align: center;
    margin-top: 3rem;
}

.pricing-cta-button {
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    text-decoration: none;
    transition: background 0.3s;
}

.pricing-cta-button:hover {
    background: var(--color-primary-dark);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .pricing-card {
        padding: 1rem;
    }
    .current-price.price-value {
        font-size: 1.2rem;
    }
    .price-label {
        font-size: 1rem;
    }
    .price-values {
    /* Ensure stacking is clean on smaller screens */
        margin-left: 0.5rem;
    }
}