/* ThinkDatum Theme CSS v7 - Unified */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --td-primary: #1376EB;
    --td-primary-fg: #ffffff;
    --td-bg: #ffffff;
    --td-fg: #0f172a;
    --td-muted: #64748b;
    --td-border: #e2e8f0;
    --td-section-bg: #f8fafc;
    --td-card-bg: #ffffff;
    --td-radius: 12px;
    --td-radius-lg: 16px;
    --td-primary-5: rgba(19,118,235,0.05);
    --td-primary-10: rgba(19,118,235,0.1);
    --td-primary-20: rgba(19,118,235,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--td-fg);
    background: var(--td-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Containers */
.td-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.td-container-sm { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.td-container-md { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.td-container-lg { max-width: 1024px; margin: 0 auto; padding: 0 1rem; }
.td-text-center { text-align: center; }
.td-text-muted { color: var(--td-muted); line-height: 1.7; }
.td-text-lg { font-size: 1.125rem; }

/* ========== HEADER ========== */
.td-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--td-border);
}
.td-header-inner {
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.td-logo-img { height: 36px; width: auto; }
.td-logo-text { font-size: 1.25rem; font-weight: 700; color: var(--td-fg); }
.td-nav-desktop { display: none; }
@media (min-width: 768px) {
    .td-nav-desktop { display: block; }
    .td-mobile-toggle { display: none !important; }
}
.td-nav-list { list-style: none; display: flex; align-items: center; gap: 2rem; }
.td-nav-list > li { position: relative; }
.td-nav-list > li > a {
    font-size: 0.875rem; font-weight: 500; color: var(--td-fg);
    transition: color 0.2s; padding: 0.5rem 0;
}
.td-nav-list > li > a:hover,
.td-nav-list > li.current-menu-item > a { color: var(--td-primary); }
.td-nav-list > li.menu-item-has-children > a::after {
    content: ''; display: inline-block; width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 4px solid currentColor; margin-left: 4px; vertical-align: middle;
}
.td-nav-list .sub-menu {
    list-style: none; position: absolute; top: 100%; left: 0;
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.5rem 0; min-width: 180px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all 0.2s;
}
.td-nav-list > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.td-nav-list .sub-menu li a {
    display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--td-fg);
    transition: background 0.2s;
}
.td-nav-list .sub-menu li a:hover { background: var(--td-section-bg); }
.td-header-actions { display: none; gap: 0.75rem; }
@media (min-width: 768px) { .td-header-actions { display: flex; } }
.td-mobile-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 4px;
}
.td-mobile-toggle span {
    width: 24px; height: 2px; background: var(--td-fg); border-radius: 2px; transition: 0.3s;
}
.td-mobile-menu {
    display: none; border-top: 1px solid var(--td-border);
    background: var(--td-bg); padding: 1rem;
}
.td-mobile-menu.active { display: block; }
.td-mobile-nav-list { list-style: none; }
.td-mobile-nav-list li a {
    display: block; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 500;
    color: var(--td-fg); border-bottom: 1px solid var(--td-border);
}
.td-mobile-nav-list .sub-menu { list-style: none; padding-left: 1rem; }
.td-mobile-nav-list .sub-menu li a { font-weight: 400; color: var(--td-muted); }

/* ========== BUTTONS ========== */
.td-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500;
    border-radius: 8px; border: none; cursor: pointer; transition: all 0.2s;
    text-decoration: none; line-height: 1.4;
}
.td-btn-primary { background: var(--td-primary); color: var(--td-primary-fg); }
.td-btn-primary:hover { opacity: 0.9; }
.td-btn-outline { background: transparent; border: 1px solid var(--td-border); color: var(--td-fg); }
.td-btn-outline:hover { background: var(--td-section-bg); }
.td-btn-outline-primary { background: transparent; border: 1px solid var(--td-primary); color: var(--td-primary); }
.td-btn-outline-primary:hover { background: var(--td-primary-5); }
.td-btn-white { background: white; color: var(--td-primary); }
.td-btn-white:hover { opacity: 0.9; }
.td-btn-full { width: 100%; text-align: center; margin-top: 1rem; }
.td-btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }

/* ========== SECTIONS ========== */
.td-section { padding: 5rem 0; }
.td-section-lg { padding: 5rem 0; }
.td-bg-alt { background: var(--td-section-bg); }
.td-bg-white { background: var(--td-bg); }
.td-section-title {
    font-size: 1.75rem; font-weight: 700; color: var(--td-fg); margin-bottom: 0.25rem;
}
@media (min-width: 768px) { .td-section-title { font-size: 2.25rem; } }
.td-section-subtitle { color: var(--td-muted); margin-top: 1rem; }
.td-section-header { text-align: center; margin-bottom: 3.5rem; }
.td-primary-text { color: var(--td-primary); }

/* ========== PAGE HERO ========== */
.td-page-hero {
    padding: 5rem 0; background: var(--td-section-bg); text-align: center;
}
.td-page-hero h1 { font-size: 2.5rem; font-weight: 700; color: var(--td-fg); }
@media (min-width: 768px) { .td-page-hero h1 { font-size: 3rem; } }
.td-page-hero p { color: var(--td-muted); font-size: 1.125rem; margin-top: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ========== HOME HERO ========== */
.td-home-hero { padding: 6rem 0 5rem; }
.td-home-hero h1 { font-size: 2.5rem; font-weight: 700; color: var(--td-fg); line-height: 1.2; }
@media (min-width: 768px) { .td-home-hero h1 { font-size: 3.5rem; } }
.td-home-hero p { font-size: 1.125rem; color: var(--td-muted); margin-top: 1.25rem; margin-bottom: 2rem; max-width: 600px; }
.td-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========== BRAND LOGOS ========== */
.td-brand-logos { padding: 2.5rem 0; background: var(--td-section-bg); }
.td-logos-row { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.td-logos-row span { font-size: 0.875rem; font-weight: 500; color: var(--td-muted); opacity: 0.6; }

/* ========== SERVICE CARDS (home grid) ========== */
.td-services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .td-services-grid { grid-template-columns: repeat(3, 1fr); } }
.td-service-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 2rem;
    transition: all 0.3s; cursor: pointer;
}
.td-service-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--td-primary-20); transform: translateY(-4px); }
.td-icon-box {
    width: 3rem; height: 3rem; border-radius: var(--td-radius);
    background: var(--td-section-bg); display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; transition: background 0.3s; color: var(--td-primary); font-size: 1.25rem;
}
.td-service-card:hover .td-icon-box { background: var(--td-primary-10); }
.td-service-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--td-fg); margin-bottom: 0.5rem; }
.td-service-card p { font-size: 0.875rem; color: var(--td-muted); margin-bottom: 1rem; }
.td-learn-more { color: var(--td-primary); font-size: 0.875rem; font-weight: 500; }
.td-service-card:hover .td-learn-more { text-decoration: underline; }

/* ========== SERVICES PAGE - DETAIL LAYOUT ========== */
.td-service-detail { display: flex; flex-direction: column; gap: 3rem; align-items: flex-start; }
@media (min-width: 1024px) { .td-service-detail { flex-direction: row; gap: 3rem; } }
.td-service-detail.td-reverse { }
@media (min-width: 1024px) { .td-service-detail.td-reverse { flex-direction: row-reverse; } }
.td-service-detail-left { flex: 1; }
.td-service-detail-right { flex: 1; width: 100%; }
.td-service-detail-left h2 { font-size: 1.5rem; font-weight: 700; color: var(--td-fg); margin-bottom: 0.75rem; }
@media (min-width: 768px) { .td-service-detail-left h2 { font-size: 1.875rem; } }
.td-service-detail-left > p { color: var(--td-muted); margin-bottom: 1.5rem; }
.td-offer-title { font-weight: 600; color: var(--td-fg); margin-bottom: 1rem; }
.td-offer-list { list-style: none; }
.td-offer-list li {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.875rem; color: var(--td-fg); padding: 0.375rem 0;
}
.td-check-icon { color: var(--td-primary); flex-shrink: 0; font-size: 1rem; }
.td-tech-box {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 2rem;
}
.td-tech-box h4 { font-weight: 600; color: var(--td-fg); margin-bottom: 1.5rem; }
.td-tech-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.td-tech-pill {
    padding: 0.75rem 1rem; border-radius: var(--td-radius);
    border: 1px solid var(--td-border); text-align: center;
    font-size: 0.875rem; font-weight: 500; color: var(--td-fg);
    background: var(--td-section-bg); transition: all 0.2s; cursor: pointer;
}
.td-tech-pill:hover {
    border-color: var(--td-primary); background: var(--td-primary-5);
    color: var(--td-primary); box-shadow: 0 2px 8px rgba(19,118,235,0.1);
}

/* ========== ABOUT PAGE ========== */
.td-about-hero-grid {
    display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .td-about-hero-grid { grid-template-columns: 1fr 1fr; } }
.td-about-hero-grid h1 { font-size: 2.5rem; font-weight: 700; color: var(--td-fg); }
@media (min-width: 768px) { .td-about-hero-grid h1 { font-size: 3rem; } }
.td-about-hero-grid img { border-radius: var(--td-radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; }
.td-mission-vision-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-mission-vision-grid { grid-template-columns: repeat(2, 1fr); } }
.td-mv-card {
    background: var(--td-section-bg); border-radius: var(--td-radius-lg); padding: 2rem;
    border: 1px solid var(--td-border); transition: box-shadow 0.3s;
}
.td-mv-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-mv-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--td-fg); margin-bottom: 0.75rem; }
.td-mv-card p { font-size: 0.875rem; color: var(--td-muted); }
.td-values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .td-values-grid { grid-template-columns: repeat(4, 1fr); } }
.td-value-card {
    background: var(--td-card-bg); border-radius: var(--td-radius-lg); padding: 1.5rem;
    border: 1px solid var(--td-border); text-align: center;
    transition: all 0.3s;
}
.td-value-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--td-primary-20); }
.td-value-card h3 { font-size: 1rem; font-weight: 600; color: var(--td-fg); margin-bottom: 0.5rem; }
.td-value-card p { font-size: 0.75rem; color: var(--td-muted); }

/* Team */
.td-team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .td-team-grid { grid-template-columns: repeat(4, 1fr); } }
.td-team-card {
    text-align: center; padding: 2rem; border-radius: var(--td-radius-lg);
    background: var(--td-card-bg); border: 1px solid var(--td-border); transition: box-shadow 0.3s;
}
.td-team-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-team-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }
.td-team-card h3 { font-size: 1rem; font-weight: 600; }
.td-team-card .td-role { color: var(--td-primary); font-size: 0.875rem; font-weight: 500; }

/* ========== HIRE TALENT ========== */
.td-hire-hero-grid {
    display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) { .td-hire-hero-grid { grid-template-columns: 1fr 1fr; } }
.td-hire-hero-grid h1 { font-size: 2.5rem; font-weight: 700; color: var(--td-fg); line-height: 1.2; }
@media (min-width: 768px) { .td-hire-hero-grid h1 { font-size: 3rem; } }
.td-hire-hero-grid img { border-radius: var(--td-radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; }
.td-why-hire-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-why-hire-grid { grid-template-columns: repeat(3, 1fr); } }
.td-why-card {
    background: var(--td-primary-5); border-radius: var(--td-radius-lg); padding: 2rem;
    transition: all 0.3s;
}
.td-why-card:hover { background: var(--td-primary-10); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-why-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--td-fg); margin-bottom: 0.5rem; }
.td-why-card p { font-size: 0.875rem; color: var(--td-muted); }
.td-roles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .td-roles-grid { grid-template-columns: repeat(5, 1fr); } }
.td-role-pill {
    padding: 1rem; background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius); text-align: center;
    font-size: 0.875rem; font-weight: 500; color: var(--td-fg);
    transition: all 0.2s; cursor: pointer;
}
.td-role-pill:hover { border-color: var(--td-primary-20); box-shadow: 0 2px 8px rgba(19,118,235,0.08); }
.td-steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .td-steps-grid { grid-template-columns: repeat(4, 1fr); } }
.td-step-circle {
    width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: var(--td-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.125rem; font-weight: 700;
}

/* ========== CAREERS ========== */
.td-benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .td-benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.td-benefit-pill {
    background: var(--td-section-bg); border-radius: var(--td-radius);
    padding: 1rem 1.25rem; text-align: center;
    font-size: 0.875rem; font-weight: 500; color: var(--td-fg);
    border: 1px solid var(--td-border);
}

/* ========== CASE STUDY CARDS ========== */
.td-cs-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .td-cs-grid { grid-template-columns: repeat(3, 1fr); } }
.td-cs-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); overflow: hidden;
    transition: all 0.3s;
}
.td-cs-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-cs-card-img { overflow: hidden; }
.td-cs-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.td-cs-card:hover .td-cs-card-img img { transform: scale(1.05); }
.td-cs-card-body { padding: 1.5rem; }
.td-cs-card-body h3 { font-size: 1.125rem; font-weight: 600; color: var(--td-fg); }
.td-cs-card-body p { font-size: 0.875rem; color: var(--td-muted); margin-top: 0.5rem; }
.td-cs-card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.td-cs-link {
    display: inline-flex; align-items: center; gap: 0.25rem;
    color: var(--td-primary); font-size: 0.875rem; font-weight: 500;
    margin-top: 1rem;
}
.td-cs-link:hover { text-decoration: underline; }

/* Filter tabs */
.td-filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.td-tab {
    padding: 0.625rem 1.25rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
    background: var(--td-card-bg); border: 1px solid var(--td-border); color: var(--td-fg);
    cursor: pointer; transition: all 0.2s;
}
.td-tab:hover { border-color: var(--td-primary-20); }
.td-tab.active { background: var(--td-primary); color: white; border-color: var(--td-primary); }

/* Tag pill */
.td-tag {
    font-size: 0.75rem; padding: 0.25rem 0.75rem;
    border-radius: 999px; border: 1px solid var(--td-primary-20);
    color: var(--td-primary); background: var(--td-primary-5);
}

/* ========== JOBS ========== */
.td-jobs-list { display: grid; gap: 1rem; }
.td-job-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 1.5rem;
    transition: box-shadow 0.3s;
}
.td-job-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-job-card-inner { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) {
    .td-job-card-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.td-job-info { flex: 1; }
.td-job-info h3 { font-size: 1.125rem; font-weight: 700; color: var(--td-fg); }
.td-job-meta { display: flex; gap: 1rem; margin-top: 0.25rem; font-size: 0.875rem; color: var(--td-muted); }
.td-job-meta span { display: flex; align-items: center; gap: 0.25rem; }
.td-job-info > p { font-size: 0.875rem; color: var(--td-muted); margin-top: 0.75rem; }
.td-job-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* ========== CTA BLUE ========== */
.td-cta-blue { background: var(--td-primary); padding: 5rem 0; text-align: center; }
.td-cta-blue h2 { font-size: 1.75rem; font-weight: 700; color: white; margin-bottom: 1rem; }
@media (min-width: 768px) { .td-cta-blue h2 { font-size: 2.25rem; } }
.td-cta-blue p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ========== STATS BAR ========== */
.td-stats-bar { background: var(--td-primary); padding: 3rem 0; }
.td-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .td-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.td-stat-item { text-align: center; }
.td-stat-value { font-size: 2rem; font-weight: 700; color: white; }
@media (min-width: 768px) { .td-stat-value { font-size: 2.5rem; } }
.td-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }

/* ========== CONTACT ========== */
.td-contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .td-contact-grid { grid-template-columns: 3fr 2fr; } }
.td-form-group { margin-bottom: 1rem; }
.td-form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--td-fg); margin-bottom: 0.375rem; }
.td-form-group input,
.td-form-group select,
.td-form-group textarea {
    width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--td-border);
    border-radius: 8px; font-size: 0.875rem; font-family: 'Inter', sans-serif;
    transition: border-color 0.2s; background: var(--td-bg);
}
.td-form-group input:focus,
.td-form-group select:focus,
.td-form-group textarea:focus { outline: none; border-color: var(--td-primary); }
.td-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.td-contact-info-card {
    background: var(--td-section-bg); border-radius: var(--td-radius-lg);
    padding: 1.5rem; margin-bottom: 1rem; border: 1px solid var(--td-border);
}
.td-contact-info-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--td-fg); margin-bottom: 1rem; }
.td-contact-info-card p { font-size: 0.875rem; color: var(--td-muted); margin-bottom: 0.5rem; }

/* ========== BLOG CARDS ========== */
.td-blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .td-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.td-blog-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); overflow: hidden; transition: all 0.3s;
}
.td-blog-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
.td-blog-card-img { overflow: hidden; height: 200px; }
.td-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.td-blog-card-body { padding: 1.5rem; }
.td-blog-card-body .td-meta { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--td-muted); margin-bottom: 0.75rem; }
.td-blog-card-body h3 { font-size: 1.125rem; font-weight: 600; color: var(--td-fg); margin-bottom: 0.5rem; }
.td-blog-card-body h3 a { color: var(--td-fg); }
.td-blog-card-body h3 a:hover { color: var(--td-primary); }
.td-blog-card-body p { font-size: 0.875rem; color: var(--td-muted); }

/* ========== VIDEO CARDS ========== */
.td-video-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .td-video-grid { grid-template-columns: repeat(3, 1fr); } }
.td-video-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); overflow: hidden;
}
.td-video-thumb { position: relative; height: 220px; background: var(--td-section-bg); overflow: hidden; }
.td-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.td-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 64px; height: 64px; background: var(--td-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem;
}
.td-video-card-body { padding: 1.5rem; }
.td-video-card-body h3 { font-size: 1.125rem; font-weight: 600; color: var(--td-fg); margin-bottom: 0.5rem; }
.td-video-card-body p { font-size: 0.875rem; color: var(--td-muted); }

/* ========== CASE STUDY DETAIL ========== */
.td-breadcrumb-bar { background: var(--td-section-bg); border-bottom: 1px solid var(--td-border); padding: 0.75rem 0; }
.td-breadcrumb { font-size: 0.875rem; color: var(--td-muted); }
.td-breadcrumb a { color: var(--td-muted); }
.td-breadcrumb a:hover { color: var(--td-primary); }
.td-breadcrumb span { color: var(--td-fg); }
.td-back-link { display: inline-block; margin-top: 0.5rem; font-size: 0.875rem; color: var(--td-primary); }
.td-back-link:hover { text-decoration: underline; }
.td-cs-hero { padding: 4rem 0; background: var(--td-section-bg); }
.td-cs-cat { color: var(--td-primary); font-size: 0.875rem; font-weight: 500; }
.td-cs-title { font-size: 2rem; font-weight: 700; margin-top: 0.5rem; color: var(--td-fg); }
@media (min-width: 768px) { .td-cs-title { font-size: 3rem; } }
.td-cs-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.td-cs-hero-img { margin-top: 2.5rem; border-radius: var(--td-radius-lg); overflow: hidden; }
.td-cs-hero-img img { width: 100%; height: auto; object-fit: cover; }
.td-screens-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.td-screen-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--td-radius); }
@media (min-width: 768px) { .td-screen-img { height: 260px; } }
.td-features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-features-grid { grid-template-columns: repeat(2, 1fr); } }
.td-feature-card { background: var(--td-card-bg); border: 1px solid var(--td-border); border-radius: var(--td-radius); padding: 1.5rem; }
.td-feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.td-feature-card p { font-size: 0.875rem; color: var(--td-muted); }
.td-process-list { display: grid; gap: 1.5rem; }
.td-process-step { display: flex; gap: 1rem; }
.td-step-num {
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--td-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700; flex-shrink: 0;
}
.td-process-step h3 { font-size: 1rem; font-weight: 600; }
.td-process-step p { font-size: 0.875rem; color: var(--td-muted); margin-top: 0.25rem; }
.td-tech-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-tech-grid { grid-template-columns: repeat(2, 1fr); } }
.td-tech-cat { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.td-tech-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.td-tech-badge { font-size: 0.875rem; padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid var(--td-border); background: var(--td-card-bg); }
.td-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .td-results-grid { grid-template-columns: repeat(4, 1fr); } }
.td-result-value { font-size: 2rem; font-weight: 700; color: var(--td-primary); }
.td-result-label { font-size: 0.875rem; color: var(--td-muted); margin-top: 0.25rem; }

/* ========== FOOTER ========== */
.td-footer { background: var(--td-fg); color: rgba(255,255,255,0.6); padding: 4rem 0 0; }
.td-footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .td-footer-grid { grid-template-columns: repeat(5, 1fr); } }
.td-footer-heading { font-size: 0.875rem; font-weight: 600; color: white; margin-bottom: 1rem; }
.td-footer-links { list-style: none; }
.td-footer-links li { margin-bottom: 0.5rem; }
.td-footer-links li a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.td-footer-links li a:hover { color: white; }
.td-footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; margin-bottom: 0.75rem; }
.td-footer-contact svg { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.5); }
.td-social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.td-social-links a { color: rgba(255,255,255,0.4); transition: color 0.2s; }
.td-social-links a:hover { color: white; }
.td-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 3rem; padding: 2rem 0;
    text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.4);
}

/* ========== BLOG/SINGLE ========== */
.td-single-main { padding: 3rem 0; }
.td-single-article h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.td-post-meta { font-size: 0.875rem; color: var(--td-muted); margin-bottom: 2rem; display: flex; gap: 1rem; }
.td-featured-img { margin-bottom: 2rem; border-radius: var(--td-radius); overflow: hidden; }
.td-featured-img img { width: 100%; }
.td-content { line-height: 1.8; }
.td-content h2, .td-content h3, .td-content h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.td-content p { margin-bottom: 1rem; color: var(--td-muted); }
.td-content img { border-radius: var(--td-radius); margin: 1.5rem 0; }
.td-page-content { padding: 3rem 0; }
.td-page-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ========== TESTIMONIALS ========== */
.td-testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.td-testimonial-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 2rem;
}
.td-testimonial-card .td-stars { color: #F59E0B; margin-bottom: 1rem; }
.td-testimonial-card .td-quote { font-size: 1rem; margin-bottom: 1.25rem; font-style: italic; color: var(--td-fg); }
.td-testimonial-card .td-author { display: flex; align-items: center; gap: 0.75rem; }
.td-testimonial-card .td-author img { width: 48px; height: 48px; border-radius: 50%; }

/* Utility spacing */
.td-mb-0 { margin-bottom: 0; }
.td-mb-4 { margin-bottom: 1rem; }
.td-mb-6 { margin-bottom: 1.5rem; }
.td-mt-6 { margin-top: 1.5rem; }
.td-mt-8 { margin-top: 2rem; }

/* ========== V8 ADDITIONS ========== */

/* Hero Grid */
.td-hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .td-hero-grid { grid-template-columns: 1fr 1fr; } }
.td-hero-content h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
@media (min-width: 768px) { .td-hero-content h1 { font-size: 3.5rem; } }
.td-typewriter { color: var(--td-primary); display: inline-block; }

/* Hero Slider */
.td-hero-slider { position: relative; border-radius: var(--td-radius-lg); overflow: hidden; height: 350px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
@media (min-width: 768px) { .td-hero-slider { height: 420px; } }
.td-slider-images { position: relative; width: 100%; height: 100%; }
.td-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.td-slide.active { opacity: 1; }
.td-slider-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.td-dot { width: 10px; height: 10px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.5); transition: background 0.3s; }
.td-dot.active { background: var(--td-primary); }

/* Brand Logos Marquee */
.td-marquee-wrap { overflow: hidden; padding: 2.5rem 0; border-top: 1px solid var(--td-border); border-bottom: 1px solid var(--td-border); }
.td-marquee-track {
    display: flex; gap: 4rem; align-items: center;
    animation: marquee 20s linear infinite; width: max-content;
}
.td-marquee-track span { font-size: 1.125rem; font-weight: 700; color: var(--td-muted); opacity: 0.4; white-space: nowrap; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Home Stats */
.td-stats-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .td-stats-home { grid-template-columns: repeat(4, 1fr); } }
.td-home-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.td-home-stat .td-icon-box { margin-bottom: 1rem; }

/* Tech Tabs */
.td-tech-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.td-tech-panel { display: none; }
.td-tech-panel.active { display: block; }
.td-tech-grid-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (min-width: 768px) { .td-tech-grid-home { grid-template-columns: repeat(6, 1fr); } }

/* CS Tags Row */
.td-cs-tags-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.td-cs-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .td-cs-grid { grid-template-columns: repeat(3, 1fr); } }
.td-cs-card { background: var(--td-card-bg); border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); overflow: hidden; transition: all 0.3s; }
.td-cs-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
.td-cs-card-img { height: 200px; overflow: hidden; }
.td-cs-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.td-cs-card:hover .td-cs-card-img img { transform: scale(1.05); }
.td-cs-card-body { padding: 1.5rem; }
.td-cs-card-body h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.td-cs-card-body p { font-size: 0.875rem; color: var(--td-muted); }
.td-cs-link { color: var(--td-primary); font-size: 0.875rem; font-weight: 500; display: inline-block; margin-top: 1rem; }
.td-cs-link:hover { text-decoration: underline; }

/* Team Grid Home */
.td-team-grid-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) { .td-team-grid-home { grid-template-columns: repeat(3, 1fr); } }
.td-team-card-home { background: var(--td-card-bg); border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); overflow: hidden; transition: box-shadow 0.3s; }
.td-team-card-home:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-team-img-wrap { overflow: hidden; height: 260px; }
.td-team-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.td-team-card-home:hover .td-team-img-wrap img { transform: scale(1.05); }
.td-team-info { padding: 1.25rem; text-align: center; }
.td-team-info h3 { font-weight: 600; font-size: 1rem; }
.td-team-info p { font-size: 0.875rem; color: var(--td-muted); }

/* Hire Plans */
.td-hire-plans { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-hire-plans { grid-template-columns: repeat(3, 1fr); } }
.td-hire-card {
    background: var(--td-card-bg); border: 2px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 2rem; position: relative;
    transition: box-shadow 0.3s;
}
.td-hire-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-hire-card.td-popular { border-color: var(--td-primary); }
.td-popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--td-primary); color: white; font-size: 0.75rem; font-weight: 500;
    padding: 0.25rem 1rem; border-radius: 999px;
}
.td-hire-card h3 { font-size: 1.25rem; font-weight: 700; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.td-hire-card > p { font-size: 0.875rem; color: var(--td-muted); margin-bottom: 1.5rem; }
.td-hire-card ul { list-style: none; }
.td-hire-card ul li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; padding: 0.375rem 0; }

/* Testimonials */
.td-testimonial-slider { position: relative; }
.td-testimonial { display: none; background: var(--td-section-bg); border-radius: var(--td-radius-lg); padding: 2rem 3rem; }
.td-testimonial.active { display: block; }
.td-quote-mark { font-size: 2.5rem; color: var(--td-primary); margin-bottom: 1rem; }
.td-quote-text { font-size: 1.125rem; color: var(--td-fg); opacity: 0.8; line-height: 1.8; }
.td-quote-author { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.td-quote-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.td-quote-author strong { display: block; font-size: 0.9375rem; }
.td-quote-author span { font-size: 0.8125rem; color: var(--td-muted); }
.td-testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }

/* Engagement Models */
.td-engagement-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .td-engagement-header { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.td-engagement-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-engagement-grid { grid-template-columns: repeat(3, 1fr); } }
.td-engagement-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 2rem; transition: box-shadow 0.3s;
}
.td-engagement-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.td-engagement-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.td-engagement-card > p { font-size: 0.875rem; color: var(--td-muted); margin-bottom: 1.5rem; }
.td-engagement-card ul { list-style: none; }
.td-engagement-card ul li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; padding: 0.375rem 0; }
.td-check-blue { color: var(--td-primary); flex-shrink: 0; }

/* Blog Header */
.td-blog-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2.5rem; }
.td-blog-category {
    position: absolute; top: 0.75rem; left: 0.75rem;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
    font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.75rem;
    border-radius: 999px; color: var(--td-fg);
}
.td-blog-card-img { position: relative; overflow: hidden; }
.td-blog-card:hover .td-blog-card-img img { transform: scale(1.05); }
.td-blog-card-img img { transition: transform 0.3s; }

/* Contact Home Grid */
.td-contact-home-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .td-contact-home-grid { grid-template-columns: 1fr 1fr; } }
.td-contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.td-contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.td-contact-form-card { background: var(--td-card-bg); border: 1px solid var(--td-border); border-radius: var(--td-radius-lg); padding: 2rem; }

/* Contact V2 Grid */
.td-contact-grid-v2 { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .td-contact-grid-v2 { grid-template-columns: 1fr 1fr; } }

/* About Hero Grid */
.td-about-hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .td-about-hero-grid { grid-template-columns: 1fr 1fr; } }
.td-about-hero-grid img { border-radius: var(--td-radius-lg); }

/* Mission Vision Grid */
.td-mission-vision-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .td-mission-vision-grid { grid-template-columns: 1fr 1fr; } }
.td-mv-card {
    background: var(--td-section-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 2rem;
    transition: all 0.3s; cursor: pointer;
}
.td-mv-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--td-primary-20); }
.td-mv-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; margin-top: 0.75rem; }
.td-mv-card p { font-size: 0.875rem; color: var(--td-muted); line-height: 1.7; }

/* Values Grid */
.td-values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .td-values-grid { grid-template-columns: repeat(4, 1fr); } }
.td-value-card {
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 1.5rem; text-align: center;
    transition: all 0.3s; cursor: pointer;
}
.td-value-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--td-primary-20); }
.td-value-card h3 { font-weight: 600; margin-bottom: 0.5rem; }
.td-value-card p { font-size: 0.75rem; color: var(--td-muted); line-height: 1.6; }

/* Service card as link */
a.td-service-card { display: block; text-decoration: none; color: inherit; }

/* ========== SERVICE PAGE ENHANCEMENTS v8.3 ========== */
.td-check-svg { color: #1376EB; flex-shrink: 0; }
.td-btn-outline-white {
    border: 2px solid white; color: white; background: transparent;
    padding: 0.75rem 2rem; border-radius: 8px; font-weight: 600;
    text-decoration: none; transition: all 0.3s; display: inline-block;
}
.td-btn-outline-white:hover { background: white; color: #1376EB; }
.td-tech-box { background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%); }

/* ========== CASE STUDY V2 STYLES ========== */
.td-bg-white { background: #ffffff; }
.td-bg-grey { background: #f8fafc; }
.td-bg-blue { background: #1376EB; }

.td-cs-description {
    font-size: 1rem; color: var(--td-muted); max-width: 700px;
    margin: 1rem auto 0; line-height: 1.7;
}

.td-tag-pill {
    display: inline-block; padding: 0.5rem 1.25rem; border-radius: 999px;
    border: 1px solid var(--td-border); background: #fff;
    font-size: 0.875rem; font-weight: 500; color: var(--td-fg);
}

.td-text-body {
    font-size: 1rem; color: var(--td-muted); line-height: 1.8;
}

/* Screens grid - square-ish, 3 cols */
.td-screens-grid-v2 {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.td-screen-img-v2 {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: var(--td-radius); background: #e2e8f0;
}
@media (max-width: 767px) {
    .td-screens-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

/* Tech stack card UI */
.td-tech-cards-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (max-width: 767px) {
    .td-tech-cards-grid { grid-template-columns: 1fr; }
}
.td-tech-card-v2 {
    background: #f8fafc; border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); padding: 1.75rem;
}
.td-tech-card-v2 h4 {
    font-size: 1.125rem; font-weight: 700; color: var(--td-fg); margin-bottom: 1rem;
}
.td-tech-list-v2 {
    list-style: none; padding: 0; margin: 0;
}
.td-tech-list-v2 li {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9375rem; color: var(--td-fg); padding: 0.35rem 0;
}
.td-blue-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--td-primary); flex-shrink: 0;
}

/* Results blue section */
.td-results-text {
    color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.8;
    max-width: 800px; margin: 0 auto 2.5rem; text-align: left;
}
.td-result-item-v2 { text-align: center; }
.td-result-value-v2 {
    font-size: 2.5rem; font-weight: 700; color: #fff;
}
.td-result-label-v2 {
    font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem;
}

/* Testimonial */
.td-cs-quote-marks { margin-bottom: 1.5rem; }
.td-cs-testimonial-text {
    font-size: 1.25rem; font-style: italic; color: var(--td-muted);
    line-height: 1.8; max-width: 700px; margin: 0 auto 1.5rem;
    border: none; padding: 0;
}
.td-cs-testimonial-author {
    font-size: 1rem; font-weight: 700; color: var(--td-fg); margin-bottom: 0.25rem;
}
.td-cs-testimonial-role {
    font-size: 0.875rem; color: var(--td-muted);
}

/* ========== V8.5 ADDITIONS ========== */

/* Tech Stack Logo Grid */
.td-tech-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) { .td-tech-logo-grid { grid-template-columns: repeat(6, 1fr); } }
.td-tech-logo-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; padding: 1.5rem 1rem;
    background: var(--td-card-bg); border: 1px solid var(--td-border);
    border-radius: var(--td-radius-lg); transition: all 0.3s; cursor: pointer;
}
.td-tech-logo-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--td-primary-20);
    transform: translateY(-2px);
}
.td-tech-logo-card img {
    width: 40px; height: 40px; object-fit: contain;
}
.td-tech-logo-card span {
    font-size: 0.8125rem; font-weight: 500; color: var(--td-fg); text-align: center;
}

/* Team cards vertical rectangle */
.td-team-img-wrap-v2 {
    width: 100%; aspect-ratio: 3/4; overflow: hidden;
    border-radius: var(--td-radius-lg);
}
.td-team-img-wrap-v2 img {
    width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 767px) {
    .td-team-grid-home {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Team LinkedIn link */
.td-team-linkedin {
    display: inline-flex; align-items: center; gap: 0.25rem;
    color: var(--td-primary); margin-top: 0.25rem; transition: opacity 0.2s;
}
.td-team-linkedin:hover { opacity: 0.7; }

/* Video Review Cards */
.td-video-review-card {
    border-radius: var(--td-radius-lg); overflow: hidden;
}
.td-video-review-card .td-video-thumb {
    position: relative; height: 220px; overflow: hidden; cursor: pointer;
    border-radius: var(--td-radius-lg);
}
.td-video-review-card .td-video-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.td-video-review-card .td-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 56px; height: 56px; background: rgba(255,255,255,0.95); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer; transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.td-video-review-card .td-play-btn svg { fill: var(--td-primary); }
.td-video-review-card .td-play-btn:hover { transform: translate(-50%,-50%) scale(1.1); }
.td-video-review-info {
    padding: 1rem 0.25rem;
}
.td-video-review-info h4 {
    font-size: 0.9375rem; font-weight: 600; color: var(--td-fg);
}
.td-video-review-info p {
    font-size: 0.8125rem; color: var(--td-muted); margin-top: 0.125rem;
}

/* Service page: tech box alignment fix */
@media (min-width: 1024px) {
    .td-service-detail { align-items: flex-start; }
    .td-service-detail-right {
        padding-top: 3.5rem; /* align with title, skip icon height */
    }
}

/* Case study hero image smaller */
.td-cs-hero-img {
    max-width: 800px; margin-left: auto; margin-right: auto; margin-top: 2.5rem;
    border-radius: var(--td-radius-lg); overflow: hidden;
}

/* CTA blue section */
.td-cta-blue {
    padding: 5rem 0;
    background: var(--td-primary);
    color: white;
}
.td-cta-blue h2 { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 0.75rem; }
.td-cta-blue p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.td-btn-outline-white {
    background: transparent; border: 1px solid rgba(255,255,255,0.5); color: white;
}
.td-btn-outline-white:hover { background: rgba(255,255,255,0.1); }

/* ========== V8.6 ADDITIONS ========== */

/* Video Review Full Page Grid */
.td-video-review-grid-full {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) { .td-video-review-grid-full { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .td-video-review-grid-full { grid-template-columns: repeat(3, 1fr); } }

/* Video Review Card Body */
.td-video-review-body { padding: 1rem 0.25rem; }
.td-vr-quote { margin-bottom: 0.75rem; }
.td-quote-icon { font-size: 1.5rem; color: var(--td-primary); display: block; margin-bottom: 0.25rem; }
.td-vr-quote p { font-size: 0.8125rem; color: var(--td-muted); line-height: 1.6; font-style: italic; }
.td-vr-author { display: flex; flex-direction: column; gap: 0.125rem; }
.td-vr-author strong { font-size: 0.9375rem; color: var(--td-fg); }
.td-vr-author span { font-size: 0.8125rem; color: var(--td-muted); }

/* Trusted stats row */
.td-trust-stats {
    display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; margin-top: 2.5rem;
}
.td-trust-stats > div { text-align: center; }
.td-trust-value { display: block; font-size: 2.5rem; font-weight: 700; color: var(--td-primary); }
.td-trust-label { display: block; font-size: 0.875rem; color: var(--td-muted); margin-top: 0.25rem; }

/* Make team images smaller on homepage */
.td-team-grid-home {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto;
}
@media (min-width: 768px) { .td-team-grid-home { grid-template-columns: repeat(3, 1fr); } }
.td-team-card-home { text-align: center; }
.td-team-card-home .td-team-img-wrap-v2 { max-width: 240px; margin: 0 auto; }
.td-team-info { padding: 0.75rem 0; }
.td-team-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.125rem; }
.td-team-info p { font-size: 0.8125rem; color: var(--td-muted); }

/* Tech pill hover - white bg with blue border on hover */
.td-tech-pill {
    background: #ffffff !important;
    border: 1px solid var(--td-border);
    transition: all 0.2s;
}
.td-tech-pill:hover {
    border-color: var(--td-primary) !important;
    background: #ffffff !important;
}

/* Contact Form 7 Styling */
.contact-form-wrapper .wpcf7-form label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.375rem; color: var(--td-fg); }
.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form textarea,
.contact-form-wrapper .wpcf7-form select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--td-border);
    border-radius: 8px; font-size: 0.875rem; font-family: inherit;
    background: var(--td-bg); color: var(--td-fg); transition: border-color 0.2s;
}
.contact-form-wrapper .wpcf7-form input:focus,
.contact-form-wrapper .wpcf7-form textarea:focus,
.contact-form-wrapper .wpcf7-form select:focus { outline: none; border-color: var(--td-primary); }
.contact-form-wrapper .wpcf7-form input[type="submit"] {
    width: 100%; padding: 0.75rem; background: var(--td-primary); color: white;
    border: none; border-radius: 8px; font-size: 0.9375rem; font-weight: 600;
    cursor: pointer; transition: opacity 0.2s;
}
.contact-form-wrapper .wpcf7-form input[type="submit"]:hover { opacity: 0.9; }
.contact-form-wrapper .wpcf7-form p { margin-bottom: 1rem; }

/* Video thumb play button */
.td-video-thumb { position: relative; overflow: hidden; border-radius: var(--td-radius-lg); aspect-ratio: 16/10; }
.td-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.td-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(0,0,0,0.5); border: 2px solid white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s;
}
.td-play-btn:hover { background: rgba(19,118,235,0.8); }

/* Service page tech box top alignment */
.td-service-detail-right .td-tech-box { margin-top: 0; }
@media (min-width: 1024px) {
    .td-service-detail { align-items: flex-start; }
}

/* ========== V8.7 ADDITIONS ========== */

/* Hero slides as divs */
.td-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.8s ease;
    display: flex; align-items: center; justify-content: center;
}
.td-slide.active { opacity: 1; }

/* Brand logo images in marquee */
.td-brand-logo {
    height: 40px; width: auto; object-fit: contain;
    opacity: 0.6; transition: opacity 0.3s;
    flex-shrink: 0;
}
.td-brand-logo:hover { opacity: 1; }
.td-marquee-track {
    display: flex; gap: 4rem; align-items: center;
    animation: marquee 25s linear infinite; width: max-content;
}

/* ========== V8.8 ADDITIONS ========== */

/* Hero slide transitions - slide left */
.td-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateX(0);
    overflow: hidden;
}
.td-slide.active { opacity: 1; transform: translateX(0); }
.td-slide.td-slide-out-left { opacity: 0; transform: translateX(-100%); }
.td-slide-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border-radius: var(--td-radius-lg);
}
.td-slide img {
    position: relative; z-index: 1;
    max-height: 85%; max-width: 85%; object-fit: contain;
    margin: auto;
}

/* Counter animation value */
.td-stat-value { font-size: 2rem; font-weight: 700; }

/* Testimonial dots - more visible */
.td-testimonial-dots .td-dot {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--td-border); background: var(--td-border);
    cursor: pointer; transition: all 0.3s;
}
.td-testimonial-dots .td-dot.active {
    background: var(--td-primary); border-color: var(--td-primary);
    width: 32px; border-radius: 6px;
}

/* Case study screens - 2 per row, rectangular horizontal */
.td-screens-grid-rect {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
    margin-top: 2rem;
}
.td-screen-img-rect {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
    border-radius: var(--td-radius); background: #e2e8f0;
}
@media (max-width: 767px) {
    .td-screens-grid-rect { grid-template-columns: 1fr; }
}

/* Blog post template styles */
.td-blog-post-hero { padding: 4rem 0 2rem; }
.td-blog-post-title { font-size: 2rem; font-weight: 700; color: var(--td-fg); margin-top: 0.75rem; line-height: 1.3; }
@media (min-width: 768px) { .td-blog-post-title { font-size: 2.75rem; } }
.td-blog-post-meta { display: flex; gap: 0.5rem; align-items: center; font-size: 0.875rem; color: var(--td-muted); margin-top: 1.25rem; flex-wrap: wrap; }
.td-blog-featured-img { border-radius: var(--td-radius-lg); overflow: hidden; }
.td-blog-featured-img img { width: 100%; height: auto; display: block; }
.td-blog-content { line-height: 1.9; font-size: 1.0625rem; }
.td-blog-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--td-fg); }
.td-blog-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--td-fg); }
.td-blog-content p { margin-bottom: 1.25rem; color: var(--td-muted); }
.td-blog-content img { border-radius: var(--td-radius); margin: 2rem 0; width: 100%; }
.td-blog-content blockquote {
    border-left: 4px solid var(--td-primary); padding: 1rem 1.5rem;
    margin: 2rem 0; background: var(--td-section-bg); border-radius: 0 var(--td-radius) var(--td-radius) 0;
    font-style: italic; color: var(--td-fg);
}
.td-blog-content ul, .td-blog-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--td-muted); }
.td-blog-content li { margin-bottom: 0.5rem; }
.td-blog-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.td-author-box { display: flex; align-items: center; gap: 1.25rem; }
.td-author-box .td-author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.td-author-box h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
.td-author-box p { font-size: 0.875rem; }
