:root {
  --white: #ffffff;
  --sky: #1E88C7;
  --sky-deep: #0F6FA8;
  --sky-light: #EAF5FC;
  --sky-soft: #D3E9F7;
  --sky-tint: #F5FAFD;
  --teal: #007c7c;
  --teal-glow: rgba(0, 124, 124, 0.5);
  --deep: #0E2A3F;
  --deep-2: #123B56;
  --text: #1C2B36;
  --muted: #5A6B78;
  --line: #DCEBF4;
  --shadow: 0 20px 40px -10px rgba(15,60,90,.15);
  --shadow-sm: 0 8px 16px -4px rgba(15,60,90,.1);
  --shadow-hover: 0 30px 60px -15px rgba(15,60,90,.25);
  --radius: 16px;
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); line-height: 1.6; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: transparent; }

/* Utilities */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.bg-light { background: var(--sky-tint); }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--deep); font-weight: 700; line-height: 1.2; }

/* Buttons & Interactive Elements */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem; border: 1.5px solid transparent; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 20px -5px var(--teal-glow); }
.btn-primary:hover { background: #005a5a; box-shadow: 0 15px 25px -5px var(--teal-glow); transform: translateY(-3px); }
.btn-outline { border-color: var(--sky-soft); color: var(--deep); background: #fff; }
.btn-outline:hover { border-color: var(--sky); color: var(--sky-deep); }
.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; display: flex; }
.light-outline { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.light-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); }

/* Exact Match Top Bar */
.top-bar { 
    background: linear-gradient(90deg, #0A5A7A 0%, #007c7c 100%); 
    color: #fff; 
    padding: 12px 0; 
    font-size: 0.85rem; 
    border-bottom: none;
}
.top-bar-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 24px;
}
.contact-info, .trust-info { display: flex; align-items: center; gap: 15px; }
.tb-item { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tb-item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.tb-divider { color: rgba(255,255,255,0.4); font-weight: 300; margin: 0 5px; }

/* Exact Match Header Layout */
.site-header { 
    position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; 
    background: #fff;
    border-bottom: 1px solid rgba(220, 235, 244, 0.5); 
    transition: var(--transition); 
}
/* Subtle blue wave gradient overlay */
.site-header::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(234,245,252,0.7) 0%, rgba(255,255,255,1) 25%, rgba(255,255,255,1) 75%, rgba(234,245,252,0.7) 100%);
    pointer-events: none; z-index: -1;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-container { 
    max-width: 1400px; /* Widened for full links */
    margin: 0 auto; padding: 0 24px; height: 90px; 
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}

/* Logo Setup */
.logo-wrapper { display: flex; align-items: center; gap: 16px; }
.logo-img { height: 55px; width: auto; mix-blend-mode: multiply; }
.logo-separator { display: none; }
.logo-text-block { display: flex; flex-direction: column; justify-content: center; }
.logo-title-top { font-family: var(--serif); font-size: 1.4rem; font-weight: 900; color: var(--deep); line-height: 1.1; }
.logo-title-mid { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--deep); line-height: 1.1; letter-spacing: 0.02em; }
.logo-title-bot { font-family: var(--sans); font-size: 0.55rem; font-weight: 700; color: var(--teal); letter-spacing: 0.15em; margin-top: 3px; text-transform: uppercase; }

/* Main Navigation */
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.main-nav ul { display: flex; gap: 1.6rem; flex-wrap: nowrap; }
.main-nav a { font-weight: 600; font-size: 0.9rem; color: var(--deep-2); position: relative; padding: 6px 0; transition: color 0.3s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2.5px; background: var(--teal); transition: width 0.3s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-menu-toggle span { width: 24px; height: 2.5px; background: var(--deep); transition: 0.3s; border-radius: 2px; }

/* Customizing the CTA Button */
.nav-cta .btn { border-radius: 8px; padding: 12px 22px; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }
.logo-text-block span, .nav-cta .btn {
    white-space: nowrap;
}

/* Dynamic Hero */
.hero { background: var(--deep); color: #fff; padding: 120px 0 100px; position: relative; overflow: hidden; }
.hero-bg-glow { position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,124,124,0.15) 0%, rgba(14,42,63,0) 70%); border-radius: 50%; pointer-events: none; z-index: 1; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; }
.hero-content { max-width: 850px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 3.5rem; margin-bottom: 20px; line-height: 1.2; }
.typewriter { color: var(--sky-soft); border-bottom: 3px solid var(--teal); padding-bottom: 2px; }
.cursor { color: var(--teal); animation: blink 1s infinite; margin-left: 2px; font-weight: 400; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub { color: rgba(255, 255, 255, 0.9); font-size: 1.5rem; font-family: var(--sans); font-weight: 400; margin-bottom: 25px; }
.hero p { color: rgba(255, 255, 255, 0.7); font-size: 1.15rem; margin-bottom: 35px; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-trust-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 40px; margin-bottom: 45px; }
.hero-trust-marks span { font-weight: 600; font-size: 1rem; color: #fff; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

/* Animated Trust Strip */
.trust-strip { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 20px; padding: 30px 0; }
.trust-item { font-size: 1.05rem; color: var(--deep-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.trust-item strong { color: var(--teal); font-size: 1.4rem; font-family: var(--serif); }

/* Generic Sections */
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 18px; position: relative; display: inline-block; }
.section-header h2::after { content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--teal); border-radius: 2px; }
.section-header .subheading { color: var(--muted); font-size: 1.15rem; max-width: 700px; margin: 25px auto 0; }
.showcase, .services, .why-us, .how-it-works, .about, .contact, .languages { padding: 100px 0; }

/* =========================================
   MERLIN SCANNER COMPONENT (V5.1)
   ========================================= */
.scanner-wrapper {
    position: relative;
    width: fit-content; 
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--line);
    background-color: #ffffff; 
}

.img-layer {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Base Layer: Marathi */
.img-before {
    position: relative;
    max-height: 75vh;
    max-height: 75dvh;
    width: auto;
}

/* Middle Layer: Unformatted English */
.img-middle {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(0 0 100% 0);
    z-index: 2;
}

/* Top Layer: Formatted English */
.img-after {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: inset(0 0 100% 0);
    z-index: 3;
}

/* Sleek UI Badges */
.status-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgba(14, 42, 63, 0.95); 
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 204, 204, 0.3); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    padding: 12px 24px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    white-space: nowrap;
    opacity: 0; 
    pointer-events: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top: 2px solid #00cccc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* The Laser Beam */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; 
    background: linear-gradient(to bottom, rgba(0,204,204,0) 0%, rgba(0,204,204,0.15) 80%, rgba(0,204,204,0.7) 100%);
    border-bottom: 3px solid #00cccc;
    box-shadow: 0 5px 20px rgba(0, 204, 204, 0.5);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transform: translateY(-100%); 
}

/* 24-Second Animation Loop */
.is-scanning .img-before { animation: blurBefore 24s infinite; }
.is-scanning .img-middle { animation: revealMiddle 24s infinite; }
.is-scanning .img-after { animation: revealAfter 24s infinite; }
.is-scanning .badge-scan { animation: showBadgeScan 24s infinite; }
.is-scanning .badge-translate { animation: showBadgeTranslate 24s infinite; }
.is-scanning .badge-format { animation: showBadgeFormat 24s infinite; }
.is-scanning .badge-ready { animation: showBadgeReady 24s infinite; }
.is-scanning .scanner-line { animation: doubleLaser 24s infinite; }

@keyframes blurBefore {
    0%, 4% { filter: blur(0px); }
    6%, 17% { filter: blur(4px); } 
    18%, 100% { filter: blur(0px); }
}

@keyframes doubleLaser {
    0%, 17% { top: 0; opacity: 0; }
    18% { top: 0; opacity: 1; }
    28% { top: 100%; opacity: 1; }
    29%, 40% { top: 100%; opacity: 0; } 
    41% { top: 0; opacity: 0; }
    42% { top: 0; opacity: 1; }
    52% { top: 100%; opacity: 1; }
    54%, 100% { top: 100%; opacity: 0; }
}

@keyframes revealMiddle {
    0%, 18% { clip-path: inset(0 0 100% 0); opacity: 1; filter: blur(0px); }
    28%, 34% { clip-path: inset(0 0 0 0); opacity: 1; filter: blur(0px); }
    36%, 41% { clip-path: inset(0 0 0 0); opacity: 1; filter: blur(4px); }
    43%, 94% { clip-path: inset(0 0 0 0); opacity: 1; filter: blur(0px); }
    96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; filter: blur(0px); }
}

@keyframes revealAfter {
    0%, 42% { clip-path: inset(0 0 100% 0); opacity: 1; }
    52%, 94% { clip-path: inset(0 0 0 0); opacity: 1; }
    96%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}

@keyframes showBadgeScan {
    0%, 4% { opacity: 0; transform: translate(-50%, -40%); }
    6%, 10% { opacity: 1; transform: translate(-50%, -50%); }
    12%, 100% { opacity: 0; transform: translate(-50%, -60%); }
}

@keyframes showBadgeTranslate {
    0%, 10% { opacity: 0; transform: translate(-50%, -40%); }
    12%, 16% { opacity: 1; transform: translate(-50%, -50%); }
    18%, 100% { opacity: 0; transform: translate(-50%, -60%); }
}

@keyframes showBadgeFormat {
    0%, 34% { opacity: 0; transform: translate(-50%, -40%); }
    36%, 41% { opacity: 1; transform: translate(-50%, -50%); }
    43%, 100% { opacity: 0; transform: translate(-50%, -60%); }
}

@keyframes showBadgeReady {
    0%, 52% { opacity: 0; transform: translate(-50%, -40%); }
    54%, 88% { opacity: 1; transform: translate(-50%, -50%); }
    90%, 100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 30px; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden; z-index: 1; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, var(--sky-tint) 0%, transparent 100%); opacity: 0; transition: var(--transition); z-index: -1; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--sky-soft); }
.service-card:hover::before { opacity: 1; }
.border-top-teal { border-top: 4px solid var(--teal); }

/* New Image Headers */
.card-image { display: flex; justify-content: center; align-items: center; margin-bottom: 25px; height: 150px; width: 100%; }
.card-image img { max-height: 100%; width: auto; object-fit: contain; }

/* Updated Title with Teal Underline */
.service-card h3 { font-size: 1.3rem; margin-bottom: 18px; position: relative; padding-bottom: 14px; color: var(--deep); }
.service-card h3::after { content: ""; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--teal); border-radius: 2px; }
.service-card p { color: var(--muted); font-size: 1rem; }

/* Documents We Translate Grid */
.documents-section { padding: 100px 0; background: #fff; }
.documents-section .section-header { margin-bottom: 50px; text-align: left; }
.documents-section .section-header h2::after { left: 0; transform: none; } 

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.doc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(15,60,90,.02);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--sky-soft);
}

.doc-icon {
    width: 48px;
    height: 48px;
    background: var(--sky-light);
    color: var(--sky-deep);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.doc-icon svg { width: 22px; height: 22px; }
.doc-card h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--deep); margin-bottom: 12px; }
.doc-card p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin-bottom: 0; }

/* Why Us / Features Grid (4-Column Layout) */
.why-us { background: var(--sky-tint); }

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
}

.feature-item { 
    background: #fff; 
    padding: 30px 25px; 
    border-radius: 16px; 
    border: 1px solid var(--line); 
    box-shadow: 0 4px 15px rgba(15,60,90,.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--sky-soft);
}

.feature-item h4 { 
    font-family: var(--sans); 
    font-size: 1rem; 
    font-weight: 700; 
    margin-bottom: 12px; 
    color: var(--deep); 
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.feature-item p { 
    font-size: 0.95rem; 
    color: var(--muted); 
    line-height: 1.6;
}

/* Languages (Pills Grid) - Updated for Blue Theme & Uniformity */
.languages-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.languages-text-card { padding-right: 20px; }
.lang-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.lang-header h2 { margin-bottom: 0; font-size: 2.2rem; }
.globe-icon { width: 50px; height: 50px; background: var(--sky); color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 12px; box-shadow: 0 8px 16px rgba(30, 136, 199, 0.2); }
.globe-icon svg { width: 24px; height: 24px; }
.languages-text-card p { font-size: 1.1rem; color: var(--muted); line-height: 1.8; }
.languages-grid-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.lang-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 15px; }
.lang-pill { background: var(--sky); color: #fff; padding: 14px 16px; border-radius: 30px; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; justify-content: flex-start; gap: 10px; transition: var(--transition); box-shadow: 0 4px 10px rgba(30, 136, 199, 0.15); border: 2px solid transparent; white-space: nowrap; }
.lang-pill:hover, .highlight-pill { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30, 136, 199, 0.3); background: var(--sky-deep); color: #fff; }
.lang-icon { background: #fff; color: var(--deep); font-size: 0.7rem; font-weight: 800; padding: 4px 6px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* How It Works (Vertical Timeline) */
.timeline-container { max-width: 800px; margin: 0 auto; position: relative; padding: 20px 0; }
.timeline-line { position: absolute; top: 0; bottom: 0; left: 30px; width: 4px; background: var(--sky-light); border-radius: 2px; }
.timeline-step { display: flex; align-items: flex-start; margin-bottom: 40px; position: relative; }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-dot { width: 64px; height: 64px; background: #fff; color: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; font-family: var(--serif); border: 4px solid var(--sky-soft); z-index: 2; flex-shrink: 0; box-shadow: var(--shadow-sm); transition: var(--transition); }
.timeline-step:hover .timeline-dot { border-color: var(--teal); background: var(--teal); color: #fff; transform: scale(1.1); }
.timeline-content { margin-left: 30px; padding-top: 15px; }
.timeline-content h4 { font-size: 1.3rem; margin-bottom: 8px; color: var(--deep); }
.timeline-content p { font-size: 1.05rem; color: var(--muted); }

/* Contact Glass Card */
.contact { background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 100%); color: #fff; }
.glass-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 60px; box-shadow: 0 30px 60px rgba(0,0,0,0.2); }

/* Force exact 2-column layout for the whole card */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }

/* Force the left side to stack vertically */
.contact-info { display: block; }
.contact-info h2 { color: #fff; font-size: 2.8rem; margin-bottom: 15px; line-height: 1.2; }
.contact-info p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 35px; }

/* Teal border address block */
.contact-details { border-left: 4px solid var(--teal); padding-left: 20px; }
.contact-details p { font-size: 1rem; margin-bottom: 12px; color: rgba(255,255,255,0.7); }
.contact-details strong { color: #fff; display: block; font-size: 1.1rem; margin-bottom: 4px; }

/* Right side button stacking */
.contact-actions { display: flex; flex-direction: column; gap: 15px; }
.contact-actions .btn { margin-bottom: 0; } /* Resets bottom margin since we use gap now */

/* =========================================
   BULLETPROOF FOOTER & LOGO MATCH
   ========================================= */
.site-footer { 
    background-color: #071520 !important; 
    color: rgba(255,255,255,0.6) !important; 
    padding: 80px 0 30px !important; 
    font-size: 0.95rem !important; 
    width: 100% !important;
    display: block !important;
}

.site-footer .footer-grid { 
    display: grid !important; 
    grid-template-columns: 2fr 1fr 1fr 1.5fr !important; 
    gap: 50px !important; 
    margin-bottom: 60px !important; 
}

.site-footer h4 { 
    color: #fff !important; 
    font-family: var(--sans) !important; 
    font-size: 1.1rem !important; 
    margin-bottom: 25px !important; 
    font-weight: 600 !important; 
}

.site-footer ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.site-footer ul li { margin-bottom: 15px !important; }
.site-footer a { transition: color 0.2s !important; text-decoration: none !important; color: inherit !important; }
.site-footer a:hover { color: var(--teal) !important; }
.site-footer .footer-contact p { margin-bottom: 15px !important; }
.site-footer .footer-bottom { 
    text-align: center !important; 
    padding-top: 30px !important; 
    border-top: 1px solid rgba(255,255,255,0.05) !important; 
    font-size: 0.85rem !important; 
}

/* Footer Logo Match */
.footer-logo-wrapper { 
    display: flex !important; 
    align-items: center !important; 
    gap: 16px !important; 
    margin-bottom: 20px !important; 
    text-decoration: none !important; 
}

.footer-logo-wrapper img { 
    height: 55px !important; 
    width: auto !important; 
    object-fit: contain !important; 
    border-radius: 8px !important; 
    display: block !important; 
    /* The fixes: */
    mix-blend-mode: normal !important;
    background-color: #ffffff !important;
    padding: 4px !important;
}

.footer-separator { 
    width: 1px !important; 
    height: 45px !important; 
    background-color: rgba(255, 255, 255, 0.2) !important; 
}

.footer-brand .text-white { color: #ffffff !important; }

.footer-brand .footer-slogan { 
    margin-top: 5px !important; 
    font-style: italic !important; 
    font-weight: 600 !important; 
    font-size: 0.85rem !important; 
    color: var(--teal) !important; 
    letter-spacing: 0.05em !important; 
    padding-left: 5px !important; 
}

/* Mobile Overrides */
@media (max-width: 900px) {
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
    .site-footer .footer-grid { grid-template-columns: 1fr !important; }
}
/* Animation Classes (Intersection Observer) */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.slide-up { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.fade-in { animation: fadeIn 1.2s ease forwards; }

@keyframes slideUpFade { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsive Overrides Consolidated */
@media (max-width: 1400px) {
    .nav-container { gap: 15px; }
    .main-nav ul { gap: 1rem; }
    .main-nav a { font-size: 0.85rem; }
}

@media (max-width: 1024px) {
    .top-bar-inner { flex-direction: column; gap: 10px; text-align: center; justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .languages-wrapper { grid-template-columns: 1fr; }
    .languages-text-card { padding-right: 0; margin-bottom: 20px; border: none; box-shadow: none; padding: 0; }
}

@media (max-width: 900px) {
    .contact-card { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .trust-grid { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .timeline-line { left: 24px; }
    .timeline-dot { width: 50px; height: 50px; font-size: 1.2rem; }
    .timeline-content { margin-left: 20px; }
    .lang-pills { grid-template-columns: 1fr 1fr; }
    .languages-text-card, .languages-grid-card { padding: 24px; }
}

/* =========================================
   V108 HOTFIXES 
   ========================================= */

/* 1. Force ONLY the bottom Contact Info to stack vertically */
.contact-card .contact-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* (Optional safeguard) Ensure top bar stays horizontal */
.top-bar .contact-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.contact-details {
    margin-top: 20px !important;
    width: 100%;
}


/* WhatsApp Specific Button */
.btn-whatsapp { 
    background-color: #25D366 !important; 
    color: #ffffff !important; 
    border: none !important;
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.4) !important; 
}

.btn-whatsapp:hover { 
    background-color: #128C7E !important; 
    box-shadow: 0 15px 25px -5px rgba(37, 211, 102, 0.4) !important; 
    transform: translateY(-3px); 
}

/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}

/* Gmail Specific Button (White Card Style) */
.btn-email { 
    background-color: #ffffff !important; 
    color: #0E2A3F !important; /* Brand Deep Blue for crisp contrast */
    border: none !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15) !important; 
    font-weight: 700 !important;
}

.btn-email:hover { 
    background-color: #f8f9fa !important; 
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.25) !important; 
    transform: translateY(-3px); 
    color: #007c7c !important; /* Brand Teal on hover */
}

/* =========================================
   SHOWCASE SPLIT LAYOUT
   ========================================= */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start; /* <-- FIX: Changed from 'center' to 'flex-start' */
}

.showcase-content {
    padding-right: 20px;
}

.showcase-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.showcase-content .subheading {
    margin-bottom: 30px;
    margin-top: 0;
}

.feature-list {
    margin-bottom: 35px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.5;
}

.feature-list svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--teal);
    margin-top: 2px;
}

.feature-list strong {
    color: var(--deep);
}

.showcase-visual {
    display: flex;
    justify-content: center;
    margin-top: 25px; /* <-- FIX: Gives it a slight nudge down so the top of the video aligns perfectly with the text */
}

/* Mobile Fallback for Split Layout */
@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .showcase-content {
        padding-right: 0;
        text-align: center;
    }
    .feature-list li {
        text-align: left; /* Keeps bullets readable even when centered */
    }
}

/* =========================================
   CLIENTS SECTION (3x3 Grid with Inner Zoom)
   ========================================= */
.clients-section {
    padding: 100px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.client-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden; /* Keeps the zoomed image inside the borders */
    box-shadow: 0 4px 15px rgba(15,60,90,.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

/* The Lift and Shadow Effect */
.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15,60,90,.12);
    border-color: var(--sky-soft);
}

/* Image Container & Inner Zoom */
.client-img-wrapper {
    width: 100%;
    height: 180px; /* Fixed height for absolute uniformity */
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--teal);
}

.client-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Triggers the image scale-up when the main card is hovered */
.client-card:hover .client-img-wrapper img {
    transform: scale(1.1);
}

.client-content {
    padding: 25px;
    flex-grow: 1;
}

.client-content h4 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--deep);
    margin-bottom: 12px;
}

.client-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Stacking */
@media (max-width: 900px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================
   PIPELINE SYNC & VIRTUAL HIGHLIGHT
   ========================================= */
.phase-item {
    position: relative;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    opacity: 0.5;
    background: transparent;
    overflow: hidden;
    z-index: 1;
}

/* The Virtual Highlight Progress Fill */
.phase-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(0, 124, 124, 0.1) 0%, transparent 100%);
    z-index: -1;
}

/* Triggered simultaneously by the JS Observer */
.is-scanning .phase-1 { animation: syncText1 24s infinite; }
.is-scanning .phase-1::before { animation: fillProgress1 24s infinite linear; }

.is-scanning .phase-2 { animation: syncText2 24s infinite; }
.is-scanning .phase-2::before { animation: fillProgress2 24s infinite linear; }

.is-scanning .phase-3 { animation: syncText3 24s infinite; }
.is-scanning .phase-3::before { animation: fillProgress3 24s infinite linear; }

/* Text & Border Active States */
@keyframes syncText1 {
    0%, 17% { opacity: 1; border-left-color: var(--teal); transform: translateX(5px); background: #ffffff; box-shadow: 0 10px 20px rgba(15, 60, 90, 0.05); color: var(--teal); }
    18%, 100% { opacity: 0.5; border-left-color: transparent; transform: translateX(0); background: transparent; box-shadow: none; color: inherit; }
}
@keyframes syncText2 {
    0%, 17% { opacity: 0.5; border-left-color: transparent; transform: translateX(0); color: inherit; }
    18%, 41% { opacity: 1; border-left-color: var(--teal); transform: translateX(5px); background: #ffffff; box-shadow: 0 10px 20px rgba(15, 60, 90, 0.05); color: var(--teal); }
    42%, 100% { opacity: 0.5; border-left-color: transparent; transform: translateX(0); color: inherit; }
}
@keyframes syncText3 {
    0%, 41% { opacity: 0.5; border-left-color: transparent; transform: translateX(0); color: inherit; }
    42%, 100% { opacity: 1; border-left-color: var(--teal); transform: translateX(5px); background: #ffffff; box-shadow: 0 10px 20px rgba(15, 60, 90, 0.05); color: var(--teal); }
}

/* Progress Bar Fills */
@keyframes fillProgress1 {
    0% { width: 0%; }
    17% { width: 100%; }
    18%, 100% { width: 0%; }
}
@keyframes fillProgress2 {
    0%, 17% { width: 0%; }
    18% { width: 0%; }
    41% { width: 100%; }
    42%, 100% { width: 0%; }
}
@keyframes fillProgress3 {
    0%, 41% { width: 0%; }
    42% { width: 0%; }
    100% { width: 100%; }
}



/* =====================================================================
   CROSS-DEVICE REFINEMENTS (phones, tablets, laptops, touch, a11y)
   ===================================================================== */

html { scroll-padding-top: 90px; }
section[id] { scroll-margin-top: 80px; }
.main-nav a { white-space: nowrap; }
.nav-mobile-cta { display: none; }

/* Fluid type */
.hero h1 { font-size: clamp(2rem, 6.2vw, 3.5rem); overflow-wrap: break-word; }
.hero-sub { font-size: clamp(1.1rem, 3.6vw, 1.5rem); }
.section-header h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
.showcase-content h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.contact-info h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.lang-header h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }

/* Grids that previously forced horizontal overflow on narrow phones */
.docs-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Top bar: wrap instead of overflowing */
.top-bar .contact-info, .top-bar .trust-info { flex-wrap: wrap; row-gap: 6px; }
.footer-contact p { overflow-wrap: anywhere; }
.contact-details p, .contact-info p { overflow-wrap: anywhere; }

/* Scanner */
.scanner-wrapper { max-width: 100%; }

/* Keyboard focus (was invisible) */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
    border-radius: 6px;
}
.site-footer a:focus-visible, .contact a:focus-visible, .hero a:focus-visible { outline-color: #7fd6d6; }

/* Floating WhatsApp respects iPhone home bar */
.floating-wa {
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    right: calc(30px + env(safe-area-inset-right, 0px));
}

/* ---------- Mobile / tablet navigation (<= 1200px) ---------- */
@media (max-width: 1200px) {
    .nav-cta { display: none; }
    .mobile-menu-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0; flex-shrink: 0;
    }
    .mobile-menu-toggle span { display: block; }
    .mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .main-nav {
        display: none; flex: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        padding: 8px 24px 22px;
        border-top: 1px solid var(--line);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 90px);
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li a { display: block; padding: 15px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .main-nav a.active { color: var(--teal); }
    .nav-mobile-cta { display: block; }
    .main-nav .nav-mobile-cta a { display: flex; margin-top: 16px; padding: 14px 22px; border-bottom: none; color: #fff; }
    .main-nav .nav-mobile-cta a:hover { color: #fff; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .top-bar .contact-info, .top-bar .trust-info { justify-content: center; }
    .top-bar-inner { gap: 8px; }
}

/* ---------- Phones / small tablets ---------- */
@media (max-width: 768px) {
    .top-bar { padding: 8px 0; font-size: 0.8rem; }
    .nav-container { height: 72px; padding: 0 16px; gap: 12px; }
    .main-nav { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); padding-left: 16px; padding-right: 16px; }
    .logo-img { height: 44px; }
    .logo-wrapper { gap: 12px; min-width: 0; }
    .logo-title-top { font-size: 1.2rem; }
    .logo-title-mid { font-size: 0.85rem; }
    .logo-separator { height: 38px; }
    html { scroll-padding-top: 76px; }
    section[id] { scroll-margin-top: 66px; }

    .hero { padding: 80px 0 70px; }
    .hero h1 { min-height: 2.4em; }
    .hero p { font-size: 1.05rem; }
    .hero-trust-marks { gap: 12px; }
    .hero-trust-marks span { font-size: 0.9rem; padding: 7px 14px; }

    .showcase, .services, .why-us, .how-it-works, .about, .contact, .languages,
    .documents-section, .clients-section { padding: 70px 0; }
    .section-header { margin-bottom: 45px; }
    .about-content { font-size: 1.05rem !important; }
    .trust-grid { padding: 24px 0; }
    .glass-card { padding: 36px 22px; }
    .contact-info h2 { margin-bottom: 12px; }
    .site-footer { padding-top: 60px !important; }
    .site-footer .footer-grid { gap: 36px !important; margin-bottom: 40px !important; }
}

@media (max-width: 600px) {
    .hero h1 { min-height: 3.6em; }
    .top-bar .tb-divider { display: none; }
    .top-bar .contact-info { gap: 6px 16px; }
}

@media (max-width: 540px) {
    .top-bar .trust-info { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .logo-separator { display: none; }
    .logo-title-bot { display: block !important; font-size: 0.45rem; letter-spacing: 0.05em; margin-top: 2px; }
    .logo-img { height: 38px; }
    .logo-wrapper { gap: 10px; }
    .logo-title-top { font-size: 1.1rem; }
    .logo-title-mid { font-size: 0.72rem; letter-spacing: 0.01em; }
    .btn { padding: 14px 20px; font-size: 0.95rem; }
    .btn-large { padding: 16px 22px; font-size: 1rem; }
    .contact-actions .btn { padding: 14px 16px; font-size: 0.9rem; }
    .doc-card, .service-card { padding: 28px 22px; }
    .feature-item { padding: 24px 20px; }
    .lang-pills { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; }
    .languages-grid-card { padding: 18px; }
    .lang-pill { padding: 12px 12px; font-size: 0.85rem; gap: 8px; }
    .status-badge { font-size: 0.78rem; padding: 9px 14px; gap: 8px; }
    .spinner { width: 13px; height: 13px; }
    .timeline-content h4 { font-size: 1.15rem; }
    .timeline-content p { font-size: 1rem; }
    .floating-wa { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
}

/* Very large screens: keep the header/top bar aligned with the page */
@media (min-width: 1600px) {
    .top-bar-inner, .nav-container { max-width: 1480px; }
}

/* ---------- Touch devices: no sticky "hover" lifts ---------- */
@media (hover: none) {
    .hover-lift:hover, .btn:hover, .service-card:hover, .doc-card:hover,
    .feature-item:hover, .client-card:hover, .lang-pill:hover,
    .floating-wa:hover { transform: none; }
    .client-card:hover .client-img-wrapper img { transform: none; }
    .timeline-step:hover .timeline-dot { transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .img-after { clip-path: inset(0 0 0 0); }
    .phase-item { opacity: 1; }
    .watermark { transition: none; }
}


/* =========================================
   OUR EXPERTISE - ANIMATED CARD VISUALS
   (cards 1, 2, 4; pure CSS, sized in % so they scale with the card)
   ========================================= */
.xa {
    position: relative;
    height: 100%;
    aspect-ratio: 249 / 205;
    max-width: 100%;
    container-type: inline-size;
    margin: 0 auto;
}
.xa img { max-height: none; user-select: none; -webkit-user-drag: none; }
.xa.is-paused *, .xa.is-paused *::before { animation-play-state: paused !important; }

/* ---- Card 1: Legal Translation (scan -> English) ---- */
.xa-demo { position: absolute; left: 3.4%; top: 7.6%; width: 93.2%; height: 84.9%; }
.xa-doc {
    position: absolute; top: 4.6%; width: 35.3%; height: 88.5%;
    object-fit: cover; object-position: top; background: #fff;
    border-radius: 3px; box-shadow: 0 7px 17px rgba(15,40,60,.16);
}
.xa-before { left: 1.7%; transform: rotate(-3deg); }
.xa-after {
    right: 1.7%; opacity: 0; clip-path: inset(0 100% 0 0);
    transform: rotate(3deg);
    animation: xaReveal 4.8s ease-in-out infinite;
}
.xa-sweep {
    position: absolute; z-index: 5; top: 2.9%; width: 4.3%; height: 93%;
    left: 7%; opacity: 0; transform: translateX(-50%);
    background: linear-gradient(to bottom, transparent, rgba(0,204,204,.95), #00cccc, rgba(0,204,204,.95), transparent);
    box-shadow: 0 0 14px rgba(0,204,204,.7);
    animation: xaSweep 4.8s ease-in-out infinite;
}
.xa-arrow {
    position: absolute; z-index: 7; left: 50%; top: 50%; width: 14.7%; aspect-ratio: 1;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--teal); color: #fff; font-weight: 700;
    font-size: 8cqw; line-height: 1;
    box-shadow: 0 4px 12px rgba(0,124,124,.25);
    opacity: 0; transform: translate(-50%, -50%) scale(.8);
    animation: xaArrow 4.8s ease-in-out infinite;
}
.xa-label {
    position: absolute; z-index: 8; top: -1%; padding: .3em .8em; border-radius: 20px;
    font-family: var(--sans); font-size: 7px; font-size: 3.2cqw; font-weight: 800; letter-spacing: .12em;
    color: #fff; opacity: 0; animation: xaLabel 4.8s ease-in-out infinite;
}
.xa-label-before { left: 1.7%; background: #243847; }
.xa-label-after { right: 1.7%; background: var(--teal); }

@keyframes xaSweep {
    0%, 6%  { left: 7%;  opacity: 0; }
    10%     { opacity: 1; }
    43%     { left: 43%; opacity: 1; }
    48%     { left: 48%; opacity: 1; }
    72%     { left: 91%; opacity: 1; }
    78%, 100% { left: 91%; opacity: 0; }
}
@keyframes xaReveal {
    0%, 48% { opacity: 0; clip-path: inset(0 100% 0 0); transform: rotate(3deg) translateX(10px); }
    54%     { opacity: 1; clip-path: inset(0 100% 0 0); transform: rotate(3deg) translateX(4px); }
    74%, 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: rotate(3deg) translateX(0); }
}
@keyframes xaArrow {
    0%, 48% { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
    55%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    84%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
}
@keyframes xaLabel {
    0%, 18% { opacity: 0; }
    22%, 82% { opacity: 1; }
    88%, 100% { opacity: 0; }
}

/* ---- Card 2: Transcription (mic + waves + typed words) ---- */
.xa-mic { position: absolute; left: -5.2%; top: 0; width: 86.3%; height: 93.2%; }
.xa-micimg, .xa-wave { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; }
.xa-micimg { z-index: 2; }
.xa-wave { z-index: 3; transform-origin: 50% 50%; animation: xaPulse 1.05s ease-in-out infinite; }
.xa-w1 { --d: -.15s; --pk: 1.15; } .xa-w2 { --d: -.32s; --pk: .82; } .xa-w3 { --d: -.05s; --pk: 1.28; }
.xa-w4 { --d: -.25s; --pk: .90; } .xa-w5 { --d: -.42s; --pk: 1.18; } .xa-w6 { --d: -.18s; --pk: .78; }
.xa-w7 { --d: -.37s; --pk: 1.22; } .xa-w8 { --d: -.08s; --pk: .90; } .xa-w9 { --d: -.28s; --pk: 1.12; }
.xa-wave { animation-delay: var(--d); }
@keyframes xaPulse {
    0%, 100% { transform: scaleY(.82); opacity: .82; }
    35% { transform: scaleY(var(--pk)); opacity: 1; }
    68% { transform: scaleY(.94); opacity: .92; }
}

.xa-page {
    position: absolute; right: .4%; top: 27.8%; width: 28.9%; height: 46.8%;
    padding: 3.3% 3% 2.5%; background: #fff; border: 1px solid #dce4e9; border-radius: 2px;
    box-shadow: 0 7px 14px rgba(30,50,65,.16); transform: rotate(2deg); z-index: 5; overflow: hidden;
}
.xa-page::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #edf5f8; }
.xa-page-title { font-family: var(--sans); font-size: 4px; font-size: 1.6cqw; letter-spacing: .14em; font-weight: 700; color: #6a7d89; margin: 2% 0 8%; }
.xa-words { font-family: var(--sans); font-size: 5.8px; font-size: 2.33cqw; line-height: 1.55; color: #354d5e; overflow: hidden; height: 76%; }
.xa-words span { display: inline-block; opacity: 0; animation: xaWord 7s linear infinite; animation-delay: calc(.4s + var(--i) * .13s); }
.xa-words span::after { content: " "; white-space: pre; }
@keyframes xaWord {
    0%   { opacity: 0; transform: translateY(2px); }
    1.5% { opacity: .9; transform: translateY(0); }
    88%  { opacity: .9; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(2px); }
}

/* ---- Card 4: Urgent & Bulk (stack grows, clock rings) ---- */
.xa-stackbox { position: absolute; left: -2.8%; bottom: 8.8%; width: 81.1%; height: 78%; overflow: hidden; z-index: 2; }
.xa-stack { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; animation: xaStack 5.8s ease-in-out infinite; }
@keyframes xaStack {
    0%, 8% { clip-path: inset(100% 0 0 0); opacity: .15; }
    18% { clip-path: inset(82% 0 0 0); opacity: 1; }
    31% { clip-path: inset(64% 0 0 0); }
    44% { clip-path: inset(46% 0 0 0); }
    57% { clip-path: inset(28% 0 0 0); }
    70%, 82% { clip-path: inset(0 0 0 0); opacity: 1; }
    91%, 100% { clip-path: inset(100% 0 0 0); opacity: .15; }
}
.xa-clock {
    position: absolute; right: -.8%; bottom: 8.8%; width: 32.9%; height: 49.3%; z-index: 5;
    object-fit: contain; transform-origin: center bottom; animation: xaShake 1.8s ease-in-out infinite;
}
@keyframes xaShake {
    0%, 72%, 100% { transform: rotate(0); }
    76% { transform: rotate(-1.7deg); }
    80% { transform: rotate(1.7deg); }
    84% { transform: rotate(-1.1deg); }
    88% { transform: rotate(.9deg); }
    92% { transform: rotate(0); }
}

/* Reduced motion: show a clear finished still instead of looping */
@media (prefers-reduced-motion: reduce) {
    .xa-after, .xa-arrow, .xa-label, .xa-wave, .xa-words span, .xa-stack, .xa-clock, .xa-sweep { animation: none !important; }
    .xa-after { opacity: 1; clip-path: none; }
    .xa-label { opacity: 1; }
    .xa-sweep, .xa-arrow { display: none; }
    .xa-words span { opacity: .9; }
    .xa-stack { clip-path: none; opacity: 1; }
}

/* =========================================
   DOCUMENTS WE TRANSLATE (folder cards + sample viewer)
   ========================================= */
.dt-head { text-align: center; margin-bottom: 58px; }
.dt-eyebrow { display: block; color: var(--sky); font-size: 13px; font-weight: 800; letter-spacing: .22em; }
.dt-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin: 14px 0 18px; }
.dt-head h2 span { color: var(--sky); }
.dt-head .subheading { color: var(--muted); font-size: 1.15rem; max-width: 760px; margin: 0 auto; }

.dt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; padding-top: 30px; isolation: isolate; transition: .35s; }
.dt-grid.dim { opacity: .25; filter: blur(1px); }

.dt-folder { position: relative; min-height: 275px; border-radius: 14px; background: linear-gradient(145deg, var(--sky), var(--sky-deep)); color: #fff; padding: 28px; box-shadow: 0 18px 38px rgba(18,118,191,.17); cursor: pointer; transition: .25s; }
.dt-folder:hover { transform: translateY(-5px); box-shadow: 0 25px 48px rgba(18,118,191,.25); }
.dt-folder::before { content: ''; position: absolute; left: 34px; top: -13px; width: 145px; height: 34px; border-radius: 10px 10px 0 0; background: var(--sky); z-index: -1; }
.dt-tab { position: absolute; right: 26px; top: -13px; background: #f3f8fc; color: #0867aa; padding: 7px 12px; border-radius: 8px 8px 0 0; font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.dt-papers { 
    position: absolute; left: 22px; right: 22px; top: -30px; 
    height: 80px; pointer-events: none; z-index: 1;
}

/* The background blank papers */
.dt-paper { 
    position: absolute; width: 86%; height: 88px; 
    background: #faf6ed; border: 1px solid #ddd4c6; 
    border-radius: 4px 4px 0 0; box-shadow: 0 6px 12px rgba(0,0,0,.07); 
}
.dt-paper:nth-child(1) { left: 3%; transform: rotate(-3deg); opacity: .85; }
.dt-paper:nth-child(2) { left: 10%; transform: rotate(2deg); opacity: .95; }

/* The real PNG image in front */
.dt-paper-img { 
    position: absolute; left: 5%; width: 90%; height: 88px; 
    object-fit: cover; object-position: top; 
    border-radius: 4px 4px 0 0; box-shadow: 0 -4px 15px rgba(0,0,0,0.15); 
    background: #fff; border: 1px solid #DCEBF4; border-bottom: none; z-index: 2;
}
.dt-content { position: relative; margin-top: 65px; }
.dt-ico { width: 50px; height: 50px; border-radius: 11px; background: #f4faff; color: #0872c5; display: grid; place-items: center; margin-bottom: 18px; }
.dt-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dt-title { font: 700 1.5rem var(--serif); color: #fff; margin: 0 62px 12px 0; line-height: 1.2; }
.dt-desc { font-size: 15px; line-height: 1.5; color: #eaf5ff; }
.dt-arr { position: absolute; right: 25px; top: 115px; border: 0; border-radius: 50%; width: 48px; height: 48px; background: #f7fbff; color: #086cb5; font-size: 27px; line-height: 1; cursor: pointer; }
.dt-hint { text-align: center; color: #8095a7; font-size: 12px; letter-spacing: .08em; margin-top: 34px; }

/* Viewer (sits above the sticky header and the floating WhatsApp button) */
.dt-overlay { position: fixed; inset: 0; background: rgba(6,28,49,.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 22px; opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s, visibility .35s; z-index: 10000; }
.dt-overlay.on { opacity: 1; pointer-events: auto; visibility: visible; }
.dt-modal { width: min(1120px, 96vw); max-height: 94vh; max-height: 94dvh; overflow: auto; background: #fff; border-radius: 24px; box-shadow: 0 40px 100px rgba(4,25,46,.35); transform: translateY(30px) scale(.96); transition: .4s; position: relative; }
.dt-overlay.on .dt-modal { transform: none; }
.dt-close { position: absolute; right: 16px; top: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--deep); box-shadow: 0 8px 20px rgba(0,0,0,.13); font-size: 28px; line-height: 1; z-index: 5; }
.dt-modalbody { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.dt-stage { min-height: 680px; padding: 38px; display: grid; place-items: center; position: relative; background: #f7fbfe; }
.dt-stack { width: min(600px, 88%); height: 650px; position: relative; filter: drop-shadow(0 25px 30px rgba(15,52,78,.13)); }
.dt-back { position: absolute; inset: 10px; background: #eee8dc; border: 1px solid #d6cdbc; transform: rotate(-2.5deg); border-radius: 5px; }
.dt-back.b { transform: rotate(2deg); background: #f5efe4; }
.dt-scroll { position: absolute; inset: 0; background: #fff; border: 1px solid #d8d1c5; border-radius: 5px; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 15px; padding: 15px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.dt-scroll::-webkit-scrollbar { width: 8px; }
.dt-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.dt-scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
.dt-scroll::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
.dt-page { width: 100%; height: auto; display: block; box-shadow: 0 4px 12px rgba(0,0,0,.08); border: 1px solid #eee; border-radius: 2px; }
.dt-msg { margin: auto; color: #8095a7; font-size: 14px; letter-spacing: .04em; text-align: center; }

.dt-info { background: var(--deep); color: #fff; padding: 52px 35px; display: flex; flex-direction: column; justify-content: center; }
.dt-info h2 { font: 700 2rem var(--serif); color: #fff; margin: 0 0 12px; }
.dt-info p { color: #d8e6f0; line-height: 1.55; font-size: 15px; }
.dt-checks { display: grid; gap: 10px; margin: 18px 0 25px; }
.dt-check { font-size: 13px; display: flex; gap: 8px; align-items: center; }
.dt-check b { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.dt-quote { border-radius: 30px; background: var(--teal); color: #fff; padding: 14px 18px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background .25s; }
.dt-quote:hover { background: #005a5a; }
.dt-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; width: 45px; height: 45px; border-radius: 50%; background: #fff; color: var(--deep); box-shadow: 0 8px 20px rgba(0,0,0,.13); font-size: 28px; line-height: 1; z-index: 4; }
.dt-prev { left: 15px; }
.dt-next { right: 15px; }
.dt-info a:focus-visible, .dt-close:focus-visible, .dt-nav:focus-visible { outline-color: #7fd6d6; }

@media (max-width: 900px) {
    .dt-grid { grid-template-columns: repeat(2, 1fr); }
    .dt-modalbody { grid-template-columns: 1fr; }
    .dt-info { padding: 28px; }
    .dt-nav { display: none; }
}
@media (max-width: 600px) {
    .dt-head { margin-bottom: 44px; }
    .dt-grid { grid-template-columns: 1fr; }
    .dt-overlay { padding: 12px; }
    .dt-stage { min-height: 540px; padding: 18px; }
    .dt-stack { height: 500px; width: 94%; }
}
@media (hover: none) {
    .dt-folder:hover { transform: none; }
}


/* =========================================
   WHY CHOOSE US: cards that appear one after another
   ========================================= */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.why-card {
    min-width: 0;
    padding: 26px 22px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 9px 28px rgba(16, 43, 77, .055);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--sky-soft); }

.why-title {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--deep);
}
.why-reply {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--teal);
    background: var(--sky-light);
    color: var(--deep-2);
    font-size: .88rem;
    line-height: 1.5;
    font-weight: 600;
}
.why-reply strong { display: block; margin-top: 4px; color: var(--teal); font-weight: 700; }

.why-proof { display: grid; gap: 8px; }
.why-proof li { position: relative; padding-left: 20px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.why-proof li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }

/* The "appear one by one" effect. Only active when JavaScript has armed the grid,
   so without JavaScript every card is simply visible. */
.why-grid.is-armed .why-card { opacity: 0; transform: translateY(28px); pointer-events: none; }
.why-grid.is-armed .why-card.revealed { opacity: 1; transform: none; pointer-events: auto; animation: whyArrive .68s cubic-bezier(.2, .82, .2, 1); }

@keyframes whyArrive {
    0%   { opacity: 0; transform: translateY(28px) scale(.975); }
    70%  { opacity: 1; transform: translateY(-3px) scale(1.008); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .why-grid { grid-template-columns: 1fr; gap: 18px; } .why-card { padding: 24px 20px 22px; } }
@media (hover: none) { .why-card:hover { transform: none; } }
/* =========================================
   WHY CHOOSE US: animated icons
   Each icon is a small looping story. They start when their card appears,
   pause while the section is off-screen, and show a still picture if the visitor
   prefers reduced motion.
   ========================================= */
.why-icon {
    width: 60px; height: 60px; margin-bottom: 20px;
    display: grid; place-items: center;
    color: var(--teal);
    background: linear-gradient(145deg, #fff 0%, var(--sky-light) 100%);
    border: 1px solid var(--sky-soft);
    border-radius: 17px;
    box-shadow: 0 8px 18px rgba(15, 60, 90, .08), inset 0 1px 0 #fff;
    transition: transform .35s cubic-bezier(.2, .82, .2, 1), box-shadow .35s ease;
}
.why-card:hover .why-icon { transform: scale(1.06) rotate(-2deg); box-shadow: 0 12px 24px rgba(0, 124, 124, .16), inset 0 1px 0 #fff; }
.why-svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

/* 1. Any language: the letter changes script while the ring turns */
.lg-ring { stroke-dasharray: 15 8; stroke-width: 1.8; transform-origin: 20px 20px; animation: lgSpin 9s linear infinite; }
.lg-t { fill: currentColor; stroke: none; font: 700 18px var(--sans); transform-origin: 20px 20px; }
.lg-t1 { animation: lgOne 4.4s ease-in-out infinite; }
.lg-t2 { opacity: 0; animation: lgTwo 4.4s ease-in-out infinite; }
@keyframes lgSpin { to { transform: rotate(360deg); } }
@keyframes lgOne { 0%, 38% { opacity: 1; transform: scale(1); } 46%, 92% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }
@keyframes lgTwo { 0%, 42% { opacity: 0; transform: scale(.6); } 52%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }

/* 2. Courts: the scales weigh the case */
.sc-beam { transform-origin: 20px 10px; animation: scBeam 4.6s ease-in-out infinite; }
.sc-pl { transform-origin: 7px 10px; animation: scPanL 4.6s ease-in-out infinite; }
.sc-pr { transform-origin: 33px 10px; animation: scPanR 4.6s ease-in-out infinite; }
@keyframes scBeam { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes scPanL { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-9deg); } }
@keyframes scPanR { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-9deg); } }

/* 3. Court & embassy ready: a seal is stamped on the page */
.st-disc { fill: #fff; }
.st-seal { transform-origin: 27px 28px; animation: stSeal 4.2s ease-in-out infinite; }
.st-ring { opacity: 0; stroke-width: 1.4; transform-origin: 27px 28px; animation: stRing 4.2s ease-out infinite; }
@keyframes stSeal {
    0%, 8% { opacity: 0; transform: scale(1.7) rotate(-14deg); }
    20% { opacity: 1; transform: scale(.9) rotate(0); }
    26%, 84% { opacity: 1; transform: scale(1) rotate(0); }
    94%, 100% { opacity: 0; transform: scale(1) rotate(0); }
}
@keyframes stRing { 0%, 19% { opacity: 0; transform: scale(1); } 22% { opacity: .55; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(1.6); } }

/* 4. Advocate-supervised: the shield approves with a check */
.av-shield { transform-origin: 20px 20px; animation: avShield 4s ease-in-out infinite; }
.av-check { stroke-dasharray: 30; stroke-dashoffset: 30; animation: avCheck 4s ease-in-out infinite; }
@keyframes avShield { 0%, 30% { transform: scale(1); } 38% { transform: scale(1.07); } 48%, 100% { transform: scale(1); } }
@keyframes avCheck { 0%, 12% { stroke-dashoffset: 30; opacity: 1; } 34%, 82% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* 5. Urgent service: a stopwatch that really hurries */
.ur-hand { transform-origin: 20px 23px; animation: urHand 2.2s cubic-bezier(.55, 0, .25, 1) infinite; }
.ur-speed { stroke-width: 1.8; animation: urSpeed 2.2s ease-in-out infinite; }
@keyframes urHand { to { transform: rotate(360deg); } }
@keyframes urSpeed { 0%, 100% { opacity: 0; transform: translateX(4px); } 30%, 60% { opacity: .75; transform: translateX(0); } }

/* 6. Visa, tax & insurance: each document gets ticked off */
.vt-ck { stroke-dasharray: 14; stroke-dashoffset: 14; stroke-width: 2.4; }
.vt-1 { animation: vtOne 4.6s ease-in-out infinite; }
.vt-2 { animation: vtTwo 4.6s ease-in-out infinite; }
.vt-3 { animation: vtThree 4.6s ease-in-out infinite; }
@keyframes vtOne { 0%, 8% { stroke-dashoffset: 14; opacity: 1; } 20%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes vtTwo { 0%, 26% { stroke-dashoffset: 14; opacity: 1; } 38%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes vtThree { 0%, 44% { stroke-dashoffset: 14; opacity: 1; } 56%, 86% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* 7. Handwritten to formatted: scribbles turn into clean, straight lines */
.hw-sq { stroke-dasharray: 34; stroke-dashoffset: 34; stroke-width: 1.8; }
.hw-ln { stroke-dasharray: 20; stroke-dashoffset: 20; stroke-width: 2.2; }
.hw-s1 { animation: hwS1 5s ease-in-out infinite; }
.hw-s2 { animation: hwS2 5s ease-in-out infinite; }
.hw-s3 { animation: hwS3 5s ease-in-out infinite; }
.hw-l1 { animation: hwL1 5s ease-in-out infinite; }
.hw-l2 { animation: hwL2 5s ease-in-out infinite; }
.hw-l3 { animation: hwL3 5s ease-in-out infinite; }
@keyframes hwS1 { 0% { stroke-dashoffset: 34; opacity: 1; } 12%, 44% { stroke-dashoffset: 0; opacity: 1; } 52%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwS2 { 0%, 10% { stroke-dashoffset: 34; opacity: 1; } 22%, 44% { stroke-dashoffset: 0; opacity: 1; } 56%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwS3 { 0%, 20% { stroke-dashoffset: 34; opacity: 1; } 32%, 44% { stroke-dashoffset: 0; opacity: 1; } 60%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwL1 { 0%, 48% { stroke-dashoffset: 20; opacity: 1; } 60%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwL2 { 0%, 54% { stroke-dashoffset: 20; opacity: 1; } 66%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hwL3 { 0%, 60% { stroke-dashoffset: 20; opacity: 1; } 72%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* 8. Confidential: the padlock opens, then locks again */
.lk-body { fill: rgba(0, 124, 124, .12); transform-origin: 20px 26px; animation: lkBody 4.8s ease-in-out infinite; }
.lk-hole { fill: none; }
.lk-shackle { transform-origin: 14px 18px; animation: lkShackle 4.8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes lkShackle {
    0%, 22% { transform: translateY(0) rotate(0); }
    34% { transform: translateY(-5px) rotate(0); }
    46%, 60% { transform: translateY(-5px) rotate(-28deg); }
    72% { transform: translateY(-5px) rotate(0); }
    80%, 100% { transform: translateY(0) rotate(0); }
}
@keyframes lkBody { 0%, 76% { transform: scale(1); } 82% { transform: scale(1.05); } 90%, 100% { transform: scale(1); } }

/* Start with each card, pause when the section is off-screen */
.why-card .why-icon * { animation-play-state: paused; }
.why-card.revealed .why-icon *,
.why-grid:not(.is-armed) .why-card .why-icon * { animation-play-state: running; }
.why-grid.is-offscreen .why-card .why-icon * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
    .why-icon * { animation: none !important; }
    .lg-t2, .st-ring { opacity: 0; }
    .st-seal { opacity: 1; }
    .av-check, .vt-ck { stroke-dashoffset: 0; }
    .hw-sq { opacity: 0; }
    .hw-ln { stroke-dashoffset: 0; }
}
@media (max-width: 600px) { .why-icon { width: 56px; height: 56px; margin-bottom: 18px; } .why-svg { width: 33px; height: 33px; } }
@media (hover: none) { .why-card:hover .why-icon { transform: none; } }

/* =====================================================================
   "THE TRANSLATION WORKFLOW" - steps light up one after another
   ===================================================================== */
.timeline-step { align-items: center; }
.timeline-content {
    flex: 1; min-width: 0;
    padding: 18px 26px;
    background: #fff;
    border: 1px solid #dce9f5;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(16, 43, 92, 0.05);
}
.timeline-content h4 { margin-bottom: 6px; }

/* glowing progress line that fills down as the steps light up */
.timeline-line::after {
    content: ""; position: absolute; left: 0; top: 0; width: 100%;
    height: var(--tl-fill, 0px);
    background: linear-gradient(to bottom, #4bb7f1, #159be0);
    border-radius: 2px;
    transition: height 0.6s ease;
}

/* dimmed until lit (class is added by the script, so nothing is hidden without JS) */
.timeline-container.is-highlighting .timeline-step {
    opacity: 0.32; transform: scale(0.98); transform-origin: left center;
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.timeline-container.is-highlighting .timeline-step.is-active { opacity: 1; transform: scale(1); }

.timeline-container.is-highlighting .timeline-dot,
.timeline-container.is-highlighting .timeline-content {
    transition: border-color 0.55s ease, box-shadow 0.55s ease, background-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
}
.timeline-container.is-highlighting .timeline-step.is-active .timeline-dot {
    border-color: #159be0;
    box-shadow: 0 0 0 6px rgba(21, 155, 224, 0.12), 0 0 17px rgba(21, 155, 224, 0.55);
}
.timeline-container.is-highlighting .timeline-step.is-active .timeline-content {
    border-color: #4bb7f1;
    box-shadow: 0 14px 34px rgba(39, 157, 219, 0.15);
}

@media (max-width: 768px) {
    .timeline-content { padding: 15px 18px; border-radius: 14px; }
}
@media (max-width: 480px) {
    .timeline-content { padding: 13px 14px; }
    .timeline-step { margin-bottom: 28px; }
}

/* =========================================
   PARTNERSHIP SECTION
   ========================================= */
.pt-flow { position: relative; height: 350px; margin-top: 50px; }
.pt-cards { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.pt-card { text-align: center; position: relative; z-index: 5; }

.pt-circle {
    width: 118px; height: 118px; margin: auto;
    border: 1px solid #d9e9f4; border-radius: 50%;
    background: linear-gradient(145deg, #fff, #f5faff);
    box-shadow: 0 18px 46px rgba(31,105,158,.10), inset 0 0 0 6px rgba(255,255,255,.8);
    display: grid; place-items: center; position: relative; transition: .45s ease;
}
.pt-card.active .pt-circle {
    transform: translateY(-5px) scale(1.035);
    box-shadow: 0 22px 52px rgba(31,105,158,.15), 0 0 0 9px rgba(96,175,233,.07);
}
.pt-circle svg { width: 46px; height: 46px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.pt-num {
    position: absolute; top: -5px; right: -4px; width: 29px; height: 29px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sky); color: #fff; font-size: 11px; font-weight: 800;
}

.pt-text { width: min(250px, 90%); margin: 30px auto 0; }
.pt-text h3 { margin: 0 0 10px; font-size: 1.15rem; font-family: var(--serif); color: var(--deep); }
.pt-text p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* Route Lines & Arrows */
.pt-route { position: absolute; inset: 0; width: 100%; height: 165px; overflow: visible; z-index: 2; pointer-events: none; }
.pt-route path { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pt-arrow {
    position: absolute; width: 0; height: 0;
    border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 13px solid var(--sky);
    filter: drop-shadow(0 3px 5px rgba(30,136,199,.28));
    z-index: 8; opacity: 0; transform-origin: 2px 7px; pointer-events: none;
}

/* Mobile & Tablet Overrides */
@media(max-width: 900px) {
    /* Stack cards vertically cleanly */
    .pt-flow { height: auto; overflow: hidden; padding-bottom: 40px; margin-top: 30px; position: relative; }
    .pt-cards { position: relative; display: flex; flex-direction: column; gap: 50px; min-width: 0; align-items: center; }
    
    /* Hide the horizontal JS SVG curve and the arrow completely */
    .pt-route, .pt-arrow { display: none !important; }
    
    /* Ensure no vertical line is drawn */
    .pt-flow::before { display: none !important; }
}
/* =========================================
   V108 WHITESPACE & GAP TIGHTENING
   ========================================= */

/* Collapse the grey gap between Why Us and Languages */
#why-us { padding-bottom: 30px; }
#languages { padding-top: 30px; }

/* Collapse the white gap between Partnership and About */
#partnership { padding-bottom: 40px !important; }

/* Tighten the stranded About section */
#about { 
    padding-top: 40px; 
    padding-bottom: 60px; 
}
#about .section-header { 
    margin-bottom: 30px; /* Brings the header closer to the text */
}

/* Mobile Adjustments for these specific tightened sections */
@media (max-width: 768px) {
    #why-us, #languages { padding-top: 40px; padding-bottom: 20px; }
    #partnership { padding-bottom: 30px !important; }
    #about { padding-top: 30px; padding-bottom: 50px; }
}

/* =========================================
   NAVIGATION DROPDOWN (Vertical & Click)
   ========================================= */
.nav-links li.dropdown { position: relative; }
.nav-links li.dropdown .drop-trigger { cursor: pointer; padding-right: 4px; }

/* The popup card locked to a vertical column */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0; 
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid var(--line);
    
    /* Forces the vertical stack */
    display: flex !important;
    flex-direction: column !important; 
}

/* Forces individual links to span the full width of the box */
.dropdown-menu li { 
    display: block !important; 
    width: 100%; 
    margin: 0 !important; 
}

.dropdown-menu a {
    display: block !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    color: var(--deep-2) !important;
    font-weight: 500 !important;
    text-align: left;
}

.dropdown-menu a::after { display: none !important; } 
.dropdown-menu a:hover { background-color: var(--sky-tint); color: var(--teal) !important; }

/* The trigger state when clicked */
.nav-links li.dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* Mobile override */
@media (max-width: 1200px) {
    .dropdown-menu {
        position: static;
        display: none !important; /* Hides completely on mobile until clicked */
        box-shadow: none;
        border: none;
        padding: 0 0 0 15px;
        background: transparent;
        transform: none;
    }
    .nav-links li.dropdown.is-open .dropdown-menu {
        display: flex !important; 
    }
    .dropdown-menu a { padding: 12px 4px !important; border-bottom: 1px solid var(--line); }
}
