/* HOMEPAGE STYLES — index.php
   Consolidated from inline <style> blocks. Duplicates removed.

   Section index:
     1. Base / :root tokens
     2. Hero glow + ambient orbs
     3. Hero video overlay + light mode
     4. Hero glass buttons
     5. Stats / bento cards
     6. Expertise (services) cards
     7. Shared luxury glass card system
     8. Featured case study
     9. Latest projects grid
     10. Insights (blog) grid
     11. Partners showcase
     12. Contact CTA
     13. Scroll reveal system
     14. Final refinement + micro polish
     15. Reduced motion
   ============================================================================ */


/* ==========================================================================
   1. BASE / ROOT TOKENS
   ========================================================================== */
:root {
    --brand-teal: #2dd4bf;
    --brand-teal-glow: rgba(45, 212, 191, 0.2);
    --bg-dark-card: rgba(18, 27, 45, 0.75);
}

body {
    background-color: #070b12;
    color: #f8fafc;
    overflow-x: hidden;
}

html[lang="ar"] body { font-family: 'Cairo', sans-serif; }
html[lang="en"] body { font-family: 'Outfit', sans-serif; }


/* ==========================================================================
   2. HERO GLOW + AMBIENT ORBS
   ========================================================================== */
.services-hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, rgba(7, 11, 18, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(40px, -30px) scale(1.1); opacity: 0.25; }
}

.glow-orb-float {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, rgba(7, 11, 18, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 10s infinite ease-in-out;
}

.dynamic-ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(45, 212, 191, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 60%, rgba(16, 185, 129, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 20% 85%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 40%);
    filter: blur(80px);
    opacity: 0.95;
    animation: ambientColorMeshShift 25s ease-in-out infinite alternate;
}

body.tt-light-style-on .dynamic-ambient-bg {
    opacity: 0.55;
    background:
        radial-gradient(circle at 15% 15%, rgba(45, 212, 191, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 50% 60%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 85%, rgba(99, 102, 241, 0.22) 0%, transparent 45%);
}

@keyframes ambientColorMeshShift {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); }
    50% { transform: scale(1.12) translate(30px, -40px) rotate(3deg); }
    100% { transform: scale(0.92) translate(-30px, 30px) rotate(-3deg); }
}


/* ==========================================================================
   3. HERO VIDEO OVERLAY + LIGHT MODE
   ========================================================================== */
body.tt-light-style-on .hero-video-overlay {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.82) 0%, rgba(248, 250, 252, 0.96) 100%) !important;
    backdrop-filter: blur(16px) !important;
}

body.tt-light-style-on .hero-main-title,
body.tt-light-style-on .hero-main-title * {
    color: #0f172a !important;
    text-shadow: none !important;
}

body.tt-light-style-on .hero-main-title .bg-clip-text {
    background-image: linear-gradient(135deg, #0d9488 0%, #059669 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

body.tt-light-style-on .hero-sub-text {
    color: #334155 !important;
    text-shadow: none !important;
}

body.tt-light-style-on .hero-bottom-overlay {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 100%) !important;
}


/* ==========================================================================
   4. HERO GLASS BUTTONS
   ========================================================================== */
.glass-btn {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: var(--brand-teal);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.glass-btn:hover {
    background: var(--brand-teal);
    color: #070b12;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}

.glass-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.tt-light-style-on .glass-btn {
    background: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.3) !important;
}

body.tt-light-style-on .glass-btn:hover {
    background: #0f766e !important;
    border-color: #0f766e !important;
}

body.tt-light-style-on .glass-btn-secondary {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

body.tt-light-style-on .glass-btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}


/* ==========================================================================
   5. STATS / BENTO CARDS
   ========================================================================== */
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: 500;
}

body.tt-light-style-on .stat-outer-panel {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06) !important;
}

body.tt-light-style-on .stat-value {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background: none !important;
}

body.tt-light-style-on .service-graphic-box {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}


/* ==========================================================================
   6. EXPERTISE (SERVICES) CARDS
   ========================================================================== */
.expertise-service-card {
    position: relative;
    display: flex;
    min-height: 292px;
    flex-direction: column;
    padding: 26px 26px 74px;
    overflow: hidden;
    border: 1px solid rgba(94, 234, 212, 0.16);
    border-radius: 18px 18px 42px 18px;
    background: linear-gradient(145deg, rgba(16, 29, 47, 0.94), rgba(8, 15, 27, 0.98));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
    color: #f8fafc;
    text-decoration: none;
    isolation: isolate;
    transition: transform .32s cubic-bezier(.16,1,.3,1), border-color .32s ease, box-shadow .32s ease, background .32s ease;
}

.expertise-service-card::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 84px;
    height: 84px;
    border-radius: 36px 0 0 0;
    background: #070b12;
    box-shadow: -1px -1px 0 rgba(94, 234, 212, 0.10);
    z-index: -1;
}

.expertise-service-card::after {
    content: '';
    position: absolute;
    top: 22px;
    right: 22px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2dd4bf;
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.65);
}

.expertise-service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 212, 191, 0.62);
    background: linear-gradient(145deg, rgba(17, 38, 59, 0.98), rgba(8, 18, 31, 1));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(45, 212, 191, 0.08), 0 0 28px rgba(45, 212, 191, 0.10);
}

.expertise-service-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 212, 191, 0.45);
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.06);
    color: #5eead4;
    font-size: 1.05rem;
    transition: transform .32s ease, background .32s ease;
}

.expertise-service-card:hover .expertise-service-icon {
    transform: scale(1.06);
    background: rgba(45, 212, 191, 0.12);
}

.expertise-service-index {
    color: rgba(148, 163, 184, 0.64);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.expertise-service-title {
    color: #f8fafc;
    font-family: 'Cairo', 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
}

.expertise-service-rule {
    width: 34px;
    height: 2px;
    margin: 15px 0 16px;
    background: #2dd4bf;
    transition: width .32s ease;
}

.expertise-service-card:hover .expertise-service-rule {
    width: 52px;
}

.expertise-service-copy {
    color: #94a3b8;
    font-size: .9rem;
    line-height: 1.7;
}

.expertise-service-arrow {
    position: absolute;
    right: 17px;
    bottom: 17px;
    display: inline-flex;
    width: 47px;
    height: 47px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 212, 191, 0.52);
    border-radius: 999px;
    color: #5eead4;
    font-size: .95rem;
    transition: color .28s ease, background .28s ease, transform .28s ease, box-shadow .28s ease;
}

.expertise-service-card:hover .expertise-service-arrow {
    transform: translateX(3px);
    background: #2dd4bf;
    color: #071018;
    box-shadow: 0 8px 22px rgba(45, 212, 191, .24);
}

html.rtl .expertise-service-card::before { right: auto; left: 0; border-radius: 0 36px 0 0; box-shadow: 1px -1px 0 rgba(94, 234, 212, 0.10); }
html.rtl .expertise-service-card::after { right: auto; left: 22px; }
html.rtl .expertise-service-arrow { right: auto; left: 17px; }
html.rtl .expertise-service-card:hover .expertise-service-arrow { transform: translateX(-3px); }

.expertise-service-card:nth-child(3) { order: -1; }

body.tt-light-style-on .expertise-service-card {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border-color: rgba(148, 163, 184, 0.35);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    color: #0f172a;
}

body.tt-light-style-on .expertise-service-card::before {
    background: #f8fafc;
    box-shadow: -1px -1px 0 rgba(13, 148, 136, 0.18);
}

body.tt-light-style-on .expertise-service-title { color: #0f172a; }
body.tt-light-style-on .expertise-service-copy { color: #475569; }
body.tt-light-style-on .expertise-service-index { color: #64748b; }

body.tt-light-style-on .expertise-service-icon {
    background: rgba(45, 212, 191, 0.10);
    border-color: rgba(13, 148, 136, 0.38);
    color: #0f766e;
}

body.tt-light-style-on .expertise-service-arrow {
    background: #ffffff;
    border-color: rgba(13, 148, 136, 0.45);
    color: #0f766e;
}

body.tt-light-style-on .expertise-service-card:hover {
    border-color: rgba(13, 148, 136, 0.62);
    background: linear-gradient(145deg, #ffffff, #ecfeff);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(13, 148, 136, 0.08);
}

body.tt-light-style-on .expertise-service-card:hover .expertise-service-arrow {
    background: #0f766e;
    color: #ffffff;
}

@media (max-width: 640px) {
    .expertise-service-card { min-height: 250px; padding: 22px 22px 66px; }
    .expertise-service-title { font-size: 1.15rem; }
}


/* ==========================================================================
   7. SHARED LUXURY GLASS CARD SYSTEM
   ========================================================================== */
.luxury-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(11, 16, 26, 0.65) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 28px !important;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.tt-light-style-on .luxury-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.78) 100%) !important;
    border-color: rgba(226, 232, 240, 0.85) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.luxury-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.75s ease;
    pointer-events: none;
}

.luxury-glass-card:hover::before { left: 100%; }

.luxury-glass-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(45, 212, 191, 0.5) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(45, 212, 191, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.tt-light-style-on .luxury-glass-card:hover {
    border-color: rgba(45, 212, 191, 0.6) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14), 0 0 30px rgba(45, 212, 191, 0.15);
}

.luxury-glass-card .card-title {
    color: #ffffff;
    font-family: 'Cairo', 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}

body.tt-light-style-on .luxury-glass-card .card-title { color: #0f172a; }

.luxury-glass-card .card-desc { color: #94a3b8; }
body.tt-light-style-on .luxury-glass-card .card-desc { color: #64748b; }

.luxury-glass-card .card-meta-text { color: #64748b; }
body.tt-light-style-on .luxury-glass-card .card-meta-text { color: #64748b; }

.luxury-glass-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.25);
    color: #2dd4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
    transition: all 0.35s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.luxury-glass-card:hover .luxury-glass-icon-box {
    transform: scale(1.1) rotate(4deg);
    background: rgba(45, 212, 191, 0.22);
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.tt-light-style-on .luxury-glass-icon-box {
    background: rgba(45, 212, 191, 0.15) !important;
    border-color: rgba(45, 212, 191, 0.3) !important;
}

.project-card-notch-btn {
    width: 52px;
    height: 52px;
    border-radius: 20px;
    background: #2dd4bf;
    color: #070b12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.35);
    transition: all 0.3s ease;
}

.luxury-glass-card:hover .project-card-notch-btn {
    background: #14b8a6;
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(45, 212, 191, 0.5);
}

/* Legacy decorative shimmer (kept for parity with services page) */
.service-card-innovative {
    background: var(--bg-dark-card);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-innovative:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(45, 212, 191, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px var(--brand-teal-glow);
}

.service-card-innovative::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.6s ease;
    pointer-events: none;
}

.service-card-innovative:hover::before { left: 100%; }

/* Homepage portfolio cards: compact, image-led, easy to scan */
.homepage-project-card {
    padding: 18px !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(18, 28, 43, 0.88), rgba(8, 13, 23, 0.94)) !important;
    border: 1px solid rgba(148, 163, 184, 0.17) !important;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28) !important;
}

.homepage-project-card::before { display: none; }

.homepage-project-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(45, 212, 191, 0.42) !important;
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.40), 0 0 0 1px rgba(45, 212, 191, 0.08) !important;
}

.homepage-project-card .project-card-image {
    border-radius: 16px;
    aspect-ratio: 16 / 10;
}

.homepage-project-card .card-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
}

.homepage-project-card .card-desc { line-height: 1.55 !important; }

.homepage-project-card .project-card-notch-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(45, 212, 191, 0.58);
    color: #5eead4;
    box-shadow: none;
}

.homepage-project-card:hover .project-card-notch-btn {
    background: #2dd4bf;
    color: #071018;
    transform: translateX(2px);
    box-shadow: 0 8px 20px rgba(45, 212, 191, 0.22);
}

body.tt-light-style-on .homepage-project-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92)) !important;
    border-color: rgba(203, 213, 225, 0.9) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 640px) {
    .homepage-project-card { padding: 14px !important; border-radius: 18px !important; }
    .homepage-project-card .project-card-notch-btn { width: 38px; height: 38px; border-radius: 11px; }
}


/* ==========================================================================
   8. FEATURED CASE STUDY
   ========================================================================== */
.td-featured-case { position: relative; }

.td-featured-grid {
    display: grid;
    max-width: 74rem;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, .85fr);
    overflow: hidden;
    border: 1px solid rgba(94, 234, 212, .24);
    border-radius: 28px;
    background: rgba(8, 20, 33, .42);
    box-shadow: 0 28px 60px rgba(2, 8, 23, .3);
    backdrop-filter: blur(16px);
}

.td-featured-media { min-height: 21rem; position: relative; overflow: hidden; }
.td-featured-media img { width: 100%; height: 100%; object-fit: cover; }

.td-featured-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 45%, rgba(5, 13, 24, .75)), linear-gradient(0deg, rgba(5, 13, 24, .55), transparent 55%);
}

.td-featured-content {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.35rem);
    background: linear-gradient(145deg, rgba(10, 28, 42, .88), rgba(6, 17, 30, .58));
}

.td-featured-label {
    color: #5eead4;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.td-featured-title {
    color: #f8fafc;
    font-family: var(--td-display-font, 'Outfit', sans-serif);
    font-size: clamp(1.8rem, 2.6vw, 2.8rem);
    line-height: 1.04;
    letter-spacing: -.05em;
}

.td-featured-copy {
    display: -webkit-box;
    overflow: hidden;
    color: #b8c5d6;
    font-size: .96rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.td-featured-fact {
    border-top: 1px solid rgba(148, 163, 184, .18);
    padding-top: 1rem;
    color: #dbeafe;
    font-size: .85rem;
    line-height: 1.55;
}

.td-featured-fact strong {
    display: block;
    color: #5eead4;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.td-featured-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    min-width: 14.75rem;
    min-height: 3.35rem;
    margin-top: 1.65rem;
    color: #071b19;
    background: #2dd4bf;
    border-radius: 1rem;
    padding: .82rem 1.05rem .82rem 1.2rem;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 .7rem 1.4rem rgba(20, 184, 166, .18);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.td-featured-link:hover {
    transform: translateY(-2px);
    background: #5eead4;
    color: #071b19;
    box-shadow: 0 1rem 1.75rem rgba(20, 184, 166, .26);
}

.td-featured-link:active { transform: translateY(0) scale(.98); }
.td-featured-link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

body.tt-light-style-on .td-featured-grid {
    background: rgba(255, 255, 255, .42);
    border-color: rgba(13, 148, 136, .24);
    box-shadow: 0 24px 54px rgba(15, 23, 42, .1);
}

body.tt-light-style-on .td-featured-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(240, 249, 250, .64));
}

body.tt-light-style-on .td-featured-title { color: #0f172a; }
body.tt-light-style-on .td-featured-copy { color: #475569; }
body.tt-light-style-on .td-featured-fact { color: #334155; }

@media (max-width: 767px) {
    .td-featured-grid { grid-template-columns: 1fr; }
    .td-featured-media { min-height: 14rem; }
    .td-featured-media::after { background: linear-gradient(0deg, rgba(5, 13, 24, .7), transparent 65%); }
    .td-featured-content { padding: 1.4rem; }
    .td-featured-link { align-self: stretch; min-width: 0; margin-top: 1.35rem; }
}


/* ==========================================================================
   9. LATEST PROJECTS GRID
   ========================================================================== */
.td-projects-shell { position: relative; padding: 0; }
.td-projects-section .container,
.td-insights-section .container { max-width: 86rem; }

.td-projects-kicker {
    color: #2dd4bf;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.td-projects-title {
    color: #f8fafc;
    font-family: var(--td-display-font, 'Outfit', sans-serif);
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.012em;
}

.td-projects-subtitle {
    max-width: 37rem;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.75;
}

.td-projects-all {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    color: #dbeafe;
    border-bottom: 1px solid rgba(45, 212, 191, .55);
    font-weight: 700;
    text-decoration: none !important;
    transition: color .25s ease, gap .25s ease;
}

.td-projects-all:hover { gap: 1rem; color: #2dd4bf; }

.td-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.td-project-card {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    padding: 7px;
    border: 1px solid rgba(94, 234, 212, .28);
    border-radius: 20px;
    background: rgba(7, 17, 31, .42);
    box-shadow: 0 18px 38px rgba(2, 8, 23, .3);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    color: #fff;
    text-decoration: none !important;
    transition: transform .48s cubic-bezier(.16,1,.3,1), box-shadow .48s ease, border-color .35s ease;
}

.td-project-card::after {
    content: '';
    position: absolute;
    inset: 7px;
    z-index: -1;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2, 8, 17, .06) 12%, rgba(3, 10, 21, .18) 38%, rgba(3, 10, 21, .94) 100%);
    pointer-events: none;
}

.td-project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(94, 234, 212, .8);
    box-shadow: 0 30px 56px rgba(2, 8, 23, .46), 0 10px 26px rgba(13, 148, 136, .14);
}

.td-project-card:active { transform: translateY(-2px) scale(.99); }
.td-project-card:focus-visible { outline: 3px solid #2dd4bf; outline-offset: 4px; }

.td-project-card img {
    position: absolute;
    inset: 7px;
    z-index: -2;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    border-radius: 14px;
    object-fit: cover;
    transition: transform .75s cubic-bezier(.16,1,.3,1), filter .45s ease;
}

.td-project-card:hover img { transform: scale(1.075); filter: saturate(1.08) contrast(1.04); }

.td-project-category {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .7rem;
    border: 1px solid rgba(94, 234, 212, .54);
    border-radius: 999px;
    background: rgba(4, 21, 32, .75);
    color: #d4fffa;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.td-project-category::before {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: #2dd4bf;
    content: '';
    box-shadow: 0 0 12px rgba(45, 212, 191, .72);
}

.td-project-copy {
    position: absolute;
    inset-inline: 7px;
    bottom: 7px;
    display: flex;
    height: 224px;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(4, 17, 30, .84), rgba(8, 29, 43, .5));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.td-project-title {
    display: -webkit-box;
    min-height: 2.16em;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-family: var(--td-display-font, 'Outfit', sans-serif);
    font-size: clamp(1.1rem, 1.5vw, 1.34rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .25s ease;
}

.td-project-card:hover .td-project-title { color: #b9fff4; }

.td-project-description {
    display: -webkit-box;
    min-height: 3.28em;
    overflow: hidden;
    margin: .72rem 0 1rem;
    color: rgba(226, 232, 240, .82);
    font-size: .92rem;
    line-height: 1.64;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.td-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(226, 232, 240, .22);
    padding-top: 1rem;
}

.td-project-client {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .5rem;
    color: rgba(226, 232, 240, .82);
    font-size: .72rem;
    font-weight: 700;
}

.td-project-client i { color: #2dd4bf; }
.td-project-client span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.td-project-arrow {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(94, 234, 212, .72);
    border-radius: 50%;
    color: #5eead4;
    background: rgba(4, 21, 32, .6);
    transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s ease, color .3s ease;
}

.td-project-card:hover .td-project-arrow { transform: translateX(4px); background: #2dd4bf; color: #06201d; }
[dir="rtl"] .td-project-card:hover .td-project-arrow { transform: translateX(-4px); }

body.tt-light-style-on .td-projects-shell { background: transparent; border: 0; box-shadow: none; }
body.tt-light-style-on .td-projects-title { color: #0f172a; }
body.tt-light-style-on .td-projects-subtitle { color: #475569; }
body.tt-light-style-on .td-projects-all { color: #0f766e; border-color: rgba(13, 148, 136, .5); }
body.tt-light-style-on .td-project-card { background: rgba(255, 255, 255, .34); border-color: rgba(13, 148, 136, .28); box-shadow: 0 18px 36px rgba(15, 23, 42, .18); }

@media (max-width: 1023px) { .td-projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .td-projects-shell { padding: 0; }
    .td-projects-grid { grid-template-columns: 1fr; gap: 1rem; }
    .td-project-card { aspect-ratio: 4 / 4.7; }
    .td-project-copy { height: 214px; padding: 1.2rem; }
    .td-project-card:hover { transform: translateY(-4px); }
}


/* ==========================================================================
   10. INSIGHTS (BLOG) GRID
   ========================================================================== */
.td-insights-section { position: relative; isolation: isolate; }
.td-insights-shell { position: relative; padding: 0; }

.td-insights-section::before {
    content: '';
    position: absolute;
    inset: 12% 0 auto;
    height: 360px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(45, 212, 191, .075), transparent 68%);
}

.td-insights-kicker {
    color: #2dd4bf;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.td-insights-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.td-insights-title {
    color: #f8fafc;
    font-family: var(--td-display-font, 'Outfit', sans-serif);
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    font-weight: 700;
    letter-spacing: -.012em;
    line-height: .98;
}

.td-insights-subtitle {
    color: #94a3b8;
    max-width: 37rem;
    font-size: 1rem;
    line-height: 1.75;
}

.td-insights-all {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #dbeafe;
    font-weight: 700;
    border-bottom: 1px solid rgba(45, 212, 191, .55);
    padding: .5rem 0;
    text-decoration: none !important;
    transition: color .25s ease, gap .25s ease;
}

.td-insights-all:hover { color: #2dd4bf; gap: 1rem; }

.td-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.td-insight-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 7px;
    border: 1px solid rgba(94, 234, 212, .25);
    border-radius: 20px;
    background: rgba(7, 17, 31, .38);
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 18px 38px rgba(2, 8, 23, .22);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    transition: transform .45s cubic-bezier(.16,1,.3,1), border-color .35s ease, box-shadow .45s ease;
}

.td-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 3;
    background: #2dd4bf;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.16,1,.3,1);
}

.td-insight-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 212, 191, .72);
    box-shadow: 0 28px 54px rgba(2, 8, 23, .42), 0 10px 28px rgba(13, 148, 136, .13);
}

.td-insight-card:hover::before { transform: scaleX(1); }
.td-insight-card:focus-visible { outline: 3px solid #2dd4bf; outline-offset: 4px; }

.td-insight-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #122038;
}

.td-insight-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(6, 12, 23, .34));
    pointer-events: none;
}

.td-insight-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.16,1,.3,1), filter .45s ease;
}

.td-insight-card:hover .td-insight-media img { transform: scale(1.075); filter: saturate(1.08) contrast(1.04); }

.td-insight-category {
    position: absolute;
    z-index: 2;
    top: .9rem;
    inset-inline-start: .9rem;
    color: #cbfbf1;
    background: rgba(8, 29, 42, .82);
    border: 1px solid rgba(94, 234, 212, .48);
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.td-insight-arrow {
    position: absolute;
    z-index: 2;
    inset-inline-end: .9rem;
    bottom: .9rem;
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    color: #effffb;
    background: rgba(5, 15, 27, .72);
    transform: translateX(0);
    transition: background .3s ease, border-color .3s ease, color .3s ease, transform .35s cubic-bezier(.16,1,.3,1);
}

.td-insight-card:hover .td-insight-arrow { background: #2dd4bf; border-color: #2dd4bf; color: #06201d; transform: translateX(4px); }
[dir="rtl"] .td-insight-card:hover .td-insight-arrow { transform: translateX(-4px); }

.td-insight-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 7px;
    padding: 1.15rem 1.1rem 1rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(8, 25, 40, .78), rgba(11, 33, 47, .42));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(16px) saturate(125%);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.td-insight-title {
    color: #f8fafc;
    font-family: var(--td-display-font, 'Outfit', sans-serif);
    font-size: clamp(1.08rem, 1.35vw, 1.28rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.025em;
    transition: color .25s ease;
}

.td-insight-card:hover .td-insight-title { color: #5eead4; }

.td-insight-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: .9rem 0 1.2rem;
    color: #9fb0c7;
    font-size: .92rem;
    line-height: 1.72;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.td-insight-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, .17);
    color: #8ca0b8;
    font-size: .72rem;
    font-weight: 700;
}

.td-insight-meta i { color: #2dd4bf; }
.td-insight-meta-sep { width: 1px; height: 1rem; background: rgba(148, 163, 184, .26); }

body.tt-light-style-on .td-insights-section::before { background: radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, .11), transparent 68%); }
body.tt-light-style-on .td-insights-shell { background: transparent; border: 0; box-shadow: none; }
body.tt-light-style-on .td-insights-title,
body.tt-light-style-on .td-insight-title { color: #0f172a; }
body.tt-light-style-on .td-insights-subtitle { color: #475569; }
body.tt-light-style-on .td-insights-all { color: #0f766e; border-color: rgba(13, 148, 136, .5); }
body.tt-light-style-on .td-insight-card { background: rgba(255, 255, 255, .36); border-color: rgba(13, 148, 136, .25); box-shadow: 0 16px 32px rgba(15, 23, 42, .08); }
body.tt-light-style-on .td-insight-body { background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(241, 250, 250, .4)); border-color: rgba(13, 148, 136, .18); }
body.tt-light-style-on .td-insight-card:hover { border-color: rgba(13, 148, 136, .6); box-shadow: 0 25px 44px rgba(15, 23, 42, .12), 0 8px 24px rgba(13, 148, 136, .1); }
body.tt-light-style-on .td-insight-media::after { background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, .14)); }
body.tt-light-style-on .td-insight-category { color: #075e54; background: rgba(255, 255, 255, .9); border-color: rgba(13, 148, 136, .42); }
body.tt-light-style-on .td-insight-arrow { color: #075e54; background: rgba(255, 255, 255, .9); border-color: rgba(13, 148, 136, .4); }
body.tt-light-style-on .td-insight-excerpt,
body.tt-light-style-on .td-insight-meta { color: #64748b; }
body.tt-light-style-on .td-insight-meta { border-color: rgba(148, 163, 184, .25); }

@media (max-width: 767px) {
    .td-insights-shell { padding: 0; }
    .td-insights-grid { grid-template-columns: 1fr; gap: 1rem; }
    .td-insight-body { padding: 1.15rem; }
    .td-insight-card:hover { transform: translateY(-4px); }
}


/* ==========================================================================
   11. PARTNERS SHOWCASE
   ========================================================================== */
.td-partners-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
    border-top: 1px solid rgba(148, 163, 184, .14);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    background: radial-gradient(72rem 30rem at 50% 46%, rgba(45, 212, 191, .065), transparent 68%);
}

.td-partners-section::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: '';
    opacity: .46;
    background-image: linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 19%, #000 81%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 19%, #000 81%, transparent);
}

.td-partners-shell { position: relative; z-index: 1; max-width: 86rem; margin: 0 auto; padding: 0 1.5rem; }

.td-partners-layout {
    display: grid;
    grid-template-columns: minmax(14rem, .84fr) minmax(0, 2.16fr);
    gap: clamp(2rem, 5vw, 6.5rem);
    align-items: center;
}

.td-partners-eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0 0 1rem;
    color: #5eead4;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.td-partners-eyebrow::before {
    width: 1.85rem;
    height: 1px;
    flex: 0 0 auto;
    background: currentColor;
    content: '';
}

.td-partners-title {
    max-width: 25rem;
    margin: 0;
    color: #f8fafc;
    font-family: var(--td-display-font, 'Outfit', sans-serif);
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.td-partners-copy {
    max-width: 24rem;
    margin: 1.35rem 0 0;
    color: #aebed1;
    font-size: .98rem;
    line-height: 1.72;
    text-wrap: pretty;
}

.td-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.td-partner-card {
    position: relative;
    display: grid;
    min-height: clamp(8.5rem, 11vw, 10.6rem);
    place-items: center;
    overflow: hidden;
    padding: 1.85rem 1.35rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(21, 35, 52, .76), rgba(10, 19, 32, .62));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 1.2rem 2.8rem rgba(2, 8, 23, .16);
    transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}

.td-partner-card::after {
    position: absolute;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    top: -4.6rem;
    inset-inline-end: -3.7rem;
    opacity: 0;
    background: rgba(45, 212, 191, .18);
    filter: blur(15px);
    content: '';
    transition: opacity .3s ease;
}

.td-partner-card:hover,
.td-partner-card:focus-visible {
    border-color: rgba(94, 234, 212, .7);
    background: linear-gradient(145deg, rgba(16, 57, 68, .82), rgba(10, 25, 40, .78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 1.5rem 3.2rem rgba(13, 148, 136, .16);
    transform: translateY(-5px);
    outline: none;
}

.td-partner-card:hover::after,
.td-partner-card:focus-visible::after { opacity: 1; }

.td-partner-card img {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 11.5rem);
    max-height: 5.1rem;
    object-fit: contain;
    filter: none;
    transform: scale(1.96);
    transition: transform .3s cubic-bezier(.16,1,.3,1);
}

.td-partner-card:hover img,
.td-partner-card:focus-visible img { transform: scale(2.035); }

.td-partner-logo-on-light { display: none !important; }

body.tt-light-style-on .td-partners-section {
    border-color: rgba(15, 118, 110, .15);
    background: radial-gradient(67rem 30rem at 50% 46%, rgba(13, 148, 136, .1), transparent 68%);
}

body.tt-light-style-on .td-partners-section::before { opacity: .3; }
body.tt-light-style-on .td-partners-title { color: #0f172a; }
body.tt-light-style-on .td-partners-copy { color: #475569; }

body.tt-light-style-on .td-partner-card {
    border-color: rgba(15, 118, 110, .16);
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(241, 250, 250, .64));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1.1rem 2.8rem rgba(15, 23, 42, .07);
}

body.tt-light-style-on .td-partner-card:hover,
body.tt-light-style-on .td-partner-card:focus-visible {
    border-color: rgba(13, 148, 136, .52);
    background: rgba(255, 255, 255, .96);
    box-shadow: inset 0 1px 0 #fff, 0 1.45rem 3rem rgba(13, 148, 136, .13);
}

body.tt-light-style-on .td-partner-logo-on-dark { display: none !important; }
body.tt-light-style-on .td-partner-logo-on-light { display: block !important; }

@media (max-width: 960px) {
    .td-partners-layout { grid-template-columns: 1fr; gap: 2.4rem; }
    .td-partners-copy { max-width: 38rem; }
}

@media (max-width: 620px) {
    .td-partners-section { padding: 4rem 0; }
    .td-partners-shell { padding: 0 1.15rem; }
    .td-partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .td-partner-card { min-height: 7.6rem; padding: 1.3rem .9rem; border-radius: 1rem; }
    .td-partner-card img { max-height: 3rem; }
}


/* ==========================================================================
   12. CONTACT CTA
   ========================================================================== */
.td-home-cta { padding-top: 7rem !important; padding-bottom: 7rem !important; }

.td-home-cta-heading {
    padding-top: .14em;
    overflow: visible;
    font-family: var(--td-display-font, 'Outfit', sans-serif) !important;
    font-size: clamp(2.35rem, 5vw, 4.5rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -.05em;
}

@media (max-width: 767px) {
    .td-home-cta { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}


/* ==========================================================================
   13. SCROLL REVEAL SYSTEM
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }


/* ==========================================================================
   14. FINAL REFINEMENT + MICRO POLISH
   ========================================================================== */
/* Homepage readability calibration */
.hero-sub-text { text-wrap: pretty; }
.expertise-service-copy { font-size: .94rem; line-height: 1.72; color: #aebed1; }
.td-project-client, .td-insight-meta { font-size: .78rem; }
.td-project-description, .td-insight-excerpt { text-wrap: pretty; }
.td-home-cta p { text-wrap: balance; }

/* Final homepage refinement: rhythm, reading comfort, consistent interaction */
.td-section-header { align-items: flex-start; }
.td-section-header > div { max-width: 42rem; }
.td-section-header h2 { text-wrap: balance; }
html[lang="ar"] .td-projects-title,
html[lang="ar"] .td-insights-title { letter-spacing: 0; }
.td-section-header p { text-wrap: pretty; }
.td-section-header > a { min-height: 2.8rem; align-self: flex-start; }

.td-impact-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: #cbd5e1;
}

.td-impact-intro span {
    color: #5eead4;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.td-impact-intro p {
    margin: 0;
    max-width: 31rem;
    color: #aebed1;
    font-size: .88rem;
    line-height: 1.6;
}

.hero-sub-text {
    max-width: 42rem;
    color: #d3deeb !important;
    font-size: clamp(1rem, 1.2vw, 1.18rem) !important;
    line-height: 1.78 !important;
}

.td-featured-label { color: #7ff5e4; font-size: .76rem; }
.td-featured-title { font-size: clamp(2rem, 2.8vw, 3rem); line-height: 1.06; text-wrap: balance; }
.td-featured-copy { color: #c6d3e1; font-size: 1rem; line-height: 1.76; }
.td-featured-fact { padding-top: 1.15rem; font-size: .9rem; }
.td-featured-link { min-height: 3.5rem; margin-top: 1.85rem; }

.expertise-service-card { min-height: 300px; }
.expertise-service-copy { color: #b7c6d8 !important; font-size: .98rem !important; line-height: 1.74 !important; }
.expertise-service-title { min-height: 2.7em; font-size: 1.34rem; line-height: 1.32; }
.expertise-service-card:focus-visible { outline: 3px solid #5eead4; outline-offset: 4px; }

.td-projects-subtitle, .td-insights-subtitle { color: #b2c0d1; font-size: 1.03rem; line-height: 1.76; }
.td-project-description { color: #d1dbe7; font-size: .96rem; line-height: 1.68; }
.td-project-client { color: #c6d3e1; font-size: .79rem !important; }

.td-insight-title {
    display: -webkit-box;
    min-height: 2.44em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.td-insight-excerpt { color: #bfccda; font-size: .96rem; line-height: 1.7; }
.td-insight-meta { color: #aec0d3; font-size: .78rem !important; }

.td-projects-all:focus-visible,
.td-insights-all:focus-visible,
.glass-btn:focus-visible { outline: 3px solid #5eead4; outline-offset: 4px; }

.td-projects-all:active,
.td-insights-all:active,
.glass-btn:active { transform: translateY(1px) scale(.985); }

.td-home-cta { padding-top: 6.35rem !important; padding-bottom: 6.6rem !important; }
.td-home-cta p { color: #c2cfdd !important; font-size: clamp(1rem, 1.4vw, 1.12rem) !important; line-height: 1.76; }

.td-home-cta .glass-btn {
    min-height: 3.45rem;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.td-home-cta .glass-btn:hover { transform: translateY(-2px); box-shadow: 0 1rem 2rem rgba(45, 212, 191, .18); }

#services { padding-bottom: 5.55rem !important; }
.td-projects-section { padding-top: 5.55rem !important; padding-bottom: 5.55rem !important; }
.td-insights-section { padding-top: 5.55rem !important; padding-bottom: 5.8rem !important; }

body.tt-light-style-on .hero-sub-text { color: #334155 !important; }
body.tt-light-style-on .td-impact-intro p,
body.tt-light-style-on .td-projects-subtitle,
body.tt-light-style-on .td-insights-subtitle { color: #475569; }
body.tt-light-style-on .td-project-description { color: #475569; }
body.tt-light-style-on .td-insight-excerpt,
body.tt-light-style-on .td-insight-meta { color: #52657b; }

@media (min-width: 768px) {
    .td-section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; }
    .td-section-header > a { align-self: auto; }
}

@media (max-width: 767px) {
    .td-impact-intro { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .td-featured-title { font-size: clamp(1.85rem, 9vw, 2.4rem); }
    .td-featured-copy { font-size: .98rem; }
    .expertise-service-card { min-height: 268px; }
    .expertise-service-copy { font-size: .95rem !important; }
    .expertise-service-copy { font-size: .92rem; }
    .td-home-cta { padding-top: 4.75rem !important; padding-bottom: 5.1rem !important; }
    .td-home-cta-heading { font-size: clamp(2.25rem, 11vw, 3.25rem) !important; line-height: 1.08 !important; }
}

/* Final micro-polish: desktop emphasis + restrained rhythm adjustment */
.td-project-client, .td-insight-meta { font-size: .8rem !important; }
#services { padding-bottom: 5.25rem !important; }
.td-projects-section { padding-top: 5.25rem !important; padding-bottom: 5.25rem !important; }
.td-insights-section { padding-top: 5.25rem !important; }

@media (min-width: 1024px) {
    .td-projects-section .container { max-width: 89rem; }
    .td-projects-grid { gap: 1.35rem; }
    .td-project-card { border-color: rgba(94, 234, 212, .34); box-shadow: 0 22px 44px rgba(2, 8, 23, .34); }
}

@media (max-width: 767px) {
    #services { padding-bottom: 4.85rem !important; }
    .td-projects-section { padding-top: 4.85rem !important; padding-bottom: 4.85rem !important; }
    .td-insights-section { padding-top: 4.85rem !important; }
}


/* ==========================================================================
   15. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .td-project-card,
    .td-project-card img,
    .td-project-arrow,
    .td-projects-all,
    .td-insight-card,
    .td-insight-card::before,
    .td-insight-media img,
    .td-insight-arrow,
    .td-insights-all,
    .td-featured-link,
    .expertise-service-card,
    .td-home-cta .glass-btn,
    .td-partner-card,
    .td-partner-card img {
        transition: none !important;
    }
    .td-project-card:hover,
    .td-insight-card:hover,
    .td-featured-link:hover,
    .expertise-service-card:hover,
    .td-home-cta .glass-btn:hover,
    .td-partner-card:hover,
    .td-partner-card:focus-visible {
        transform: none !important;
    }
}
