/* Transcendent IT – custom styles on top of Bootstrap 5.3 */
:root {
  --tx-navy-900: #050e24;
  --tx-navy-800: #0a1a3d;
  --tx-navy-700: #0d2457;
  --tx-blue: #0b63e5;
  --tx-cyan: #1fa4ff;
  --tx-tint: #f3f7fd;
  --tx-text: #0f1b33;
  --tx-muted: #5b6780;
  --tx-border: #e3e9f3;
  --bs-primary: var(--tx-blue);
  --bs-primary-rgb: 11, 99, 229;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-color: var(--tx-text);
}

body { font-family: var(--bs-body-font-family); color: var(--tx-text); }
h1, h2, h3, h4 { letter-spacing: -.01em; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--tx-cyan); outline-offset: 2px; }

/* Buttons */
.btn-tx { background: var(--tx-blue); color: #fff; font-weight: 600; border: 0; }
.btn-tx:hover { background: #0952c0; color: #fff; }
.btn-outline-tx { border: 1px solid var(--tx-blue); color: var(--tx-blue); font-weight: 600; }
.btn-outline-tx:hover { background: var(--tx-blue); color: #fff; }
.link-tx { color: var(--tx-blue); font-weight: 600; font-size: .85rem; }
.text-accent { color: var(--tx-cyan); }

/* Nav */
.tx-nav { background: var(--tx-navy-900); border-bottom: 1px solid rgba(255,255,255,.06); }
.tx-nav .navbar-brand small { font-size: .55rem; font-weight: 400; opacity: .7; }
.tx-nav .nav-link { font-size: .85rem; color: rgba(255,255,255,.85); padding-bottom: .4rem; border-bottom: 2px solid transparent; }
.tx-nav .nav-link:hover, .tx-nav .nav-link.active { color: #fff; border-bottom-color: var(--tx-cyan); }
.tx-logo {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; color: #fff; font-weight: 800; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--tx-cyan), var(--tx-blue));
}

/* Hero */
.hero {
  color: #fff; padding: 5rem 0 4.5rem;
  background:
    radial-gradient(circle at 80% 30%, rgba(31,164,255,.22), transparent 45%),
    linear-gradient(120deg, var(--tx-navy-900) 40%, var(--tx-navy-700));
}
.hero-crumbs { font-size: .75rem; color: var(--tx-cyan); display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hero .lead { max-width: 34rem; font-size: 1rem; color: rgba(255,255,255,.85); }
.hero-points { font-size: .8rem; }
.hero-points i { color: var(--tx-cyan); margin-right: .35rem; }
.hero-visual {
  min-height: 300px; border-radius: 1rem; position: relative;
  background: linear-gradient(160deg, rgba(31,164,255,.12), rgba(5,14,36,.6)),
              url("../images/hero-laptop.jpg") center/cover no-repeat; /* add your image */
}
.hero-tagline { position: absolute; top: 0; right: 0; text-align: right; font-size: 1.5rem; font-weight: 700; line-height: 1.2; color: var(--tx-cyan); }

/* Sections */
.section { padding: 4.5rem 0; }
.bg-tint { background: var(--tx-tint); }
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: 1.75rem; font-weight: 700; }
.section-head p, .text-muted { color: var(--tx-muted) !important; font-size: .9rem; }
.eyebrow { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-blue); margin-bottom: .5rem; }

/* Service cards */
.service-card { border: 1px solid var(--tx-border); border-radius: .9rem; box-shadow: 0 8px 24px rgba(15,27,51,.05); }
.service-card h3 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; }
.service-card p { font-size: .82rem; color: var(--tx-muted); }
.icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: .75rem; color: #fff; font-size: 1.4rem; }
.bg-indigo { background: #5b5ff0; } .bg-green { background: #20c78a; } .bg-violet { background: #7c6cf0; }
.chip-grid { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .6rem .5rem; font-size: .72rem; color: var(--tx-muted); }
.chip-grid i { color: var(--tx-blue); margin-right: .25rem; }
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; font-size: .78rem; color: var(--tx-muted); }
.check-list i { color: var(--tx-blue); margin-right: .4rem; }

/* About */
.about { background: #fff; }
.about-visual {
  height: 100%; min-height: 280px; display: flex; align-items: center; padding: 2rem 3rem;
  color: #fff; background: linear-gradient(90deg, rgba(5,14,36,.55), rgba(5,14,36,.9)),
  url("../images/server-room.jpg") center/cover, var(--tx-navy-800);
}
.about-visual h2 { font-size: 2rem; font-weight: 700; line-height: 1.15; }
.about-visual h2::after { content: ""; display: block; width: 36px; height: 3px; background: var(--tx-cyan); margin-top: 1rem; }
.about-copy { padding: 3rem clamp(1.5rem, 5vw, 4rem); max-width: 46rem; }
.about-copy h2 { font-size: 1.6rem; font-weight: 700; }
.about-copy p { font-size: .88rem; color: var(--tx-muted); }
.about-points div { display: flex; gap: .5rem; align-items: center; font-size: .7rem; color: var(--tx-text); }
.about-points i { color: var(--tx-blue); font-size: 1.3rem; }

/* Technologies */
.tech-row i { display: block; font-size: 2.6rem; color: var(--tx-navy-800); margin-bottom: .4rem; }
.tech-row .col:last-child i, .tech-row .col:nth-child(5) i, .tech-row .col:nth-child(6) i { color: var(--tx-blue); }
.tech-row span { font-size: .8rem; font-weight: 600; }

/* Why choose */
.why { padding: 4.5rem 0; color: #fff; background: linear-gradient(180deg, var(--tx-navy-800), var(--tx-navy-900)); }
.why .section-head p { color: rgba(255,255,255,.7) !important; }
.why .eyebrow { color: var(--tx-cyan); }
.why-grid > div { padding: 1rem 1.5rem; border-right: 1px solid rgba(255,255,255,.1); }
.why-grid > div:last-child { border-right: 0; }
.why-grid i { font-size: 2.2rem; color: var(--tx-cyan); }
.why-grid h3 { font-size: .95rem; font-weight: 700; margin: .75rem 0 .35rem; }
.why-grid p { font-size: .78rem; color: rgba(255,255,255,.7); margin: 0; }
@media (max-width: 991px) { .why-grid > div { border-right: 0; } }

/* Process */
.step-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tx-blue); color: #fff; font-size: 1.15rem; }
.process h3 { font-size: .9rem; font-weight: 700; margin: .8rem 0 .25rem; }
.process p { font-size: .78rem; color: var(--tx-muted); }
@media (min-width: 992px) {
  .process > div { position: relative; }
  .process > div:not(:last-child)::after { content: "\2192"; position: absolute; right: -.5rem; top: .6rem; color: var(--tx-cyan); }
}

/* Projects */
.project-card { border: 1px solid var(--tx-border); border-radius: .7rem; overflow: hidden; }
.project-img { height: 150px; background-size: cover; background-position: center; }
.img-web   { background: linear-gradient(135deg, #1b2a4a, #3a5a8c); }
.img-net   { background: linear-gradient(135deg, #12335c, #1fa4ff); }
.img-azure { background: linear-gradient(135deg, #0a2a73, #2b8cff); }
/* swap for real screenshots: .img-web { background-image: url(images/project-web.jpg); } */
.project-card h3 { font-size: .85rem; font-weight: 700; }
.project-card p { font-size: .75rem; color: var(--tx-muted); }
.tag { display: inline-block; font-size: .65rem; padding: .2rem .6rem; margin-right: .35rem; border-radius: 999px; background: var(--tx-tint); color: var(--tx-blue); }

/* Testimonials */
.quote-card { border: 1px solid var(--tx-border); border-radius: .7rem; margin: 0; }
.quote-card blockquote { font-size: .8rem; color: var(--tx-muted); margin-bottom: .75rem; }
.quote-card figcaption strong { display: block; font-size: .78rem; }
.quote-card figcaption small { color: var(--tx-muted); font-size: .68rem; }
.avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tx-navy-700); color: #fff; font-size: .8rem; font-weight: 700; }

/* CTA */
.cta { padding: 2.25rem 0; color: #fff; background: linear-gradient(90deg, var(--tx-blue), #0a4fc0); }
.cta p { font-size: .85rem; opacity: .9; }
.cta .btn-light { color: var(--tx-blue); font-weight: 600; }

/* Footer */
.tx-footer { background: var(--tx-navy-900); color: rgba(255,255,255,.75); padding: 3rem 0 1.25rem; font-size: .8rem; }
.tx-footer .navbar-brand { color: #fff; }
.tx-footer .navbar-brand small { font-size: .55rem; opacity: .7; }
.tx-footer h4 { color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: 1rem; }
.tx-footer a { color: rgba(255,255,255,.75); }
.tx-footer a:hover { color: #fff; }
.tx-footer li { margin-bottom: .45rem; }
.tx-footer .contact i { color: var(--tx-cyan); margin-right: .5rem; }
.social { display: flex; gap: .5rem; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.footer-bottom { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1); gap: .5rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* =====================================================
   ANIMATIONS
   Hidden states only apply when JS is running (.js on <html>),
   so the page stays fully visible without JavaScript.
   ===================================================== */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 2000; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--tx-cyan), var(--tx-blue)); }

/* Navbar condenses on scroll */
.tx-nav { transition: padding .3s ease, background-color .3s ease, box-shadow .3s ease; }
.tx-nav.is-scrolled { background: rgba(5,14,36,.92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.tx-nav .navbar-brand, .tx-nav .tx-logo { transition: transform .3s ease; }
.tx-nav.is-scrolled .tx-logo { transform: scale(.9); }
.tx-nav .nav-link { position: relative; border-bottom: 0; }
.tx-nav .nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tx-cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.tx-nav .nav-link:hover::after, .tx-nav .nav-link.active::after { transform: scaleX(1); }

/* Hero: one orchestrated entrance */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatY   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glowDrift{ 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shimmer  { to { background-position: 200% center; } }

.hero { background-size: 100% 100%, 160% 160%; animation: glowDrift 18s ease-in-out infinite; }
.js .hero .hero-crumbs,
.js .hero h1,
.js .hero .lead,
.js .hero .hero-points,
.js .hero .btn { opacity: 0; animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero .hero-crumbs { animation-delay: .1s; }
.js .hero h1           { animation-delay: .25s; }
.js .hero .lead        { animation-delay: .4s; }
.js .hero .hero-points { animation-delay: .55s; }
.js .hero .btn:nth-of-type(1) { animation-delay: .7s; }
.js .hero .btn:nth-of-type(2) { animation-delay: .8s; }
.js .hero-visual { opacity: 0; animation: fadeIn 1s .4s ease forwards, floatY 6s 1.4s ease-in-out infinite; }
.hero-tagline { background: linear-gradient(90deg, var(--tx-cyan), #fff, var(--tx-cyan)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }

/* Scroll reveal (classes added by animations.js) */
.js [data-reveal] { opacity: 0; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="up"]    { transform: translateY(28px); }
.js [data-reveal="left"]  { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"]  { transform: scale(.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hover and interaction feedback */
.service-card, .project-card, .quote-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover, .project-card:hover, .quote-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(11,99,229,.14); border-color: rgba(11,99,229,.35); }
.icon-tile { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.service-card:hover .icon-tile { transform: rotate(-8deg) scale(1.1); }
.link-tx i, .btn i { display: inline-block; transition: transform .25s ease; }
.link-tx:hover i, .btn:hover i { transform: translateX(4px); }
.btn-tx, .btn-outline-tx, .btn-outline-light, .btn-light { transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }
.btn-tx:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,99,229,.4); }
.btn:active { transform: translateY(0) scale(.98); }
.chip-grid li { transition: color .2s ease, transform .2s ease; }
.chip-grid li:hover { color: var(--tx-text); transform: translateX(3px); }

/* Project images zoom inside their frame */
.project-img { transition: transform .6s ease; }
.project-card { overflow: hidden; }
.project-card:hover .project-img { transform: scale(1.07); }

/* About: slow image drift */
@keyframes kenBurns { from { background-size: 100%; } to { background-size: 112%; } }
.about-visual { animation: kenBurns 20s ease-in-out infinite alternate; }

/* Technologies */
.tech-row .col { transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.tech-row .col:hover { transform: translateY(-8px) scale(1.08); }
.tech-row .col:hover i { color: var(--tx-blue); }
.tech-row i { transition: color .3s ease; }

/* Why choose: gentle icon float, staggered */
.why-grid i { display: inline-block; animation: floatY 4s ease-in-out infinite; }
.why-grid > div:nth-child(2) i { animation-delay: .6s; }
.why-grid > div:nth-child(3) i { animation-delay: 1.2s; }
.why-grid > div:nth-child(4) i { animation-delay: 1.8s; }

/* Process: pulse ring on icons, arrows nudge */
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(11,99,229,.45); } 70%,100% { box-shadow: 0 0 0 14px rgba(11,99,229,0); } }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.step-icon { animation: ring 2.6s ease-out infinite; }
.process > div:nth-child(2) .step-icon { animation-delay: .4s; }
.process > div:nth-child(3) .step-icon { animation-delay: .8s; }
.process > div:nth-child(4) .step-icon { animation-delay: 1.2s; }
.process > div:nth-child(5) .step-icon { animation-delay: 1.6s; }
@media (min-width: 992px) { .process > div:not(:last-child)::after { animation: nudge 1.8s ease-in-out infinite; } }

/* CTA button attention pulse */
@keyframes softPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 50% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }
.cta .btn-light { animation: softPulse 2.4s ease-in-out infinite; }
.cta .btn-light:hover { animation: none; transform: translateY(-2px); }

/* Social icons */
.social a { transition: background-color .25s ease, transform .25s ease, border-color .25s ease; }
.social a:hover { background: var(--tx-blue); border-color: var(--tx-blue); transform: translateY(-3px); color: #fff; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero .hero-crumbs, .js .hero h1, .js .hero .lead,
  .js .hero .hero-points, .js .hero .btn, .js .hero-visual { opacity: 1 !important; transform: none !important; }
  .hero-tagline { color: var(--tx-cyan); background: none; }
}


/* =====================================================
   INNER PAGES (about.html, services.html)
   ===================================================== */
.page-hero { color: #fff; padding: 4.5rem 0 4rem; background: radial-gradient(circle at 85% 20%, rgba(31,164,255,.22), transparent 45%), linear-gradient(120deg, var(--tx-navy-900) 40%, var(--tx-navy-700)); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; max-width: 40rem; }
.page-hero .lead { max-width: 36rem; font-size: 1rem; color: rgba(255,255,255,.82); }
.crumbs { font-size: .78rem; color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.crumbs a { color: var(--tx-cyan); }
.js .page-hero .crumbs, .js .page-hero h1, .js .page-hero .lead, .js .page-hero .btn { opacity: 0; animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
.js .page-hero h1 { animation-delay: .15s; } .js .page-hero .lead { animation-delay: .3s; } .js .page-hero .btn { animation-delay: .45s; }

/* Stats */
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--tx-blue); line-height: 1; }
.stat span { font-size: .8rem; color: var(--tx-muted); }
.story-panel { border-radius: 1rem; background: linear-gradient(160deg, var(--tx-navy-800), var(--tx-navy-700)); color: #fff; padding: 2rem; height: 100%; }
.story-panel .stat strong { color: var(--tx-cyan); }
.story-panel .stat span { color: rgba(255,255,255,.7); }

/* Mission / values */
.value-card { background: #fff; border: 1px solid var(--tx-border); border-radius: .9rem; padding: 1.75rem; height: 100%; transition: transform .3s ease, box-shadow .3s ease; }
.value-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(11,99,229,.14); }
.value-card h3 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .4rem; }
.value-card p { font-size: .83rem; color: var(--tx-muted); margin: 0; }
.value-card:hover .icon-tile { transform: rotate(-8deg) scale(1.1); }

/* Expertise bars */
.skill { margin-bottom: 1.1rem; }
.skill-head { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; }
.skill-track { height: 8px; border-radius: 99px; background: #dfe7f5; overflow: hidden; }
.skill-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--tx-blue), var(--tx-cyan)); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.no-js .skill-fill, .skill.is-visible .skill-fill { width: var(--level); }

/* Services sub-nav */
.subnav { position: sticky; top: var(--nav-h, 72px); z-index: 50; background: #fff; border-bottom: 1px solid var(--tx-border); }
.subnav .nav-link { font-size: .82rem; font-weight: 600; color: var(--tx-muted); padding: .9rem 1.1rem; }
.subnav .nav-link:hover { color: var(--tx-blue); }

/* Service detail blocks */
.svc-block { padding: 4.5rem 0; scroll-margin-top: calc(var(--nav-h, 72px) + 60px); }
.svc-block:nth-of-type(even) { background: var(--tx-tint); }
.svc-block h2 { font-size: 1.7rem; font-weight: 700; }
.svc-block p { font-size: .9rem; color: var(--tx-muted); }
.svc-visual { min-height: 320px; height: 100%; border-radius: 1rem; display: grid; place-items: center; color: #fff; font-size: 5rem; position: relative; overflow: hidden; }
.svc-visual::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); }
.svc-visual i { animation: floatY 5s ease-in-out infinite; position: relative; z-index: 1; }
.svc-web   { background: linear-gradient(135deg, #3a3fd6, #7c6cf0); }
.svc-net   { background: linear-gradient(135deg, #0f9d70, #20c78a); }
.svc-cloud { background: linear-gradient(135deg, #0a2a73, #2b8cff); }
.feature-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.25rem; font-size: .84rem; }
.feature-list li { display: flex; gap: .5rem; align-items: flex-start; }
.feature-list i { color: var(--tx-blue); margin-top: .15rem; }
@media (max-width: 575px) { .feature-list { grid-template-columns: 1fr; } }
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }

/* FAQ */
.faq .accordion-item { border: 1px solid var(--tx-border); border-radius: .7rem !important; margin-bottom: .75rem; overflow: hidden; }
.faq .accordion-button { font-weight: 600; font-size: .92rem; color: var(--tx-text); }
.faq .accordion-button:not(.collapsed) { color: var(--tx-blue); background: var(--tx-tint); box-shadow: none; }
.faq .accordion-body { font-size: .86rem; color: var(--tx-muted); }


/* =====================================================
   PAGES: technologies, portfolio, contact, legal, 404
   ===================================================== */

/* Technologies */
.tech-card { background: #fff; border: 1px solid var(--tx-border); border-radius: .9rem; padding: 1.5rem; height: 100%; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.tech-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(11,99,229,.14); border-color: rgba(11,99,229,.35); }
.tech-card > i { font-size: 2.2rem; color: var(--tx-blue); display: inline-block; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.tech-card:hover > i { transform: scale(1.15) rotate(-6deg); }
.tech-card h3 { font-size: 1rem; font-weight: 700; margin: .75rem 0 .35rem; }
.tech-card p { font-size: .82rem; color: var(--tx-muted); margin: 0; }
.group-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.group-title::before { content: ""; width: 28px; height: 3px; background: var(--tx-cyan); border-radius: 2px; }
.compare-table { background: #fff; border-radius: .9rem; overflow: hidden; border: 1px solid var(--tx-border); font-size: .85rem; }
.compare-table th { background: var(--tx-navy-800); color: #fff; font-weight: 600; white-space: nowrap; }
.compare-table td, .compare-table th { padding: .9rem 1rem; vertical-align: top; }
.compare-table tbody tr:hover { background: var(--tx-tint); }

/* Portfolio */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.25rem; }
.filter-btn { border: 1px solid var(--tx-border); background: #fff; color: var(--tx-muted); font-size: .8rem; font-weight: 600; padding: .5rem 1.1rem; border-radius: 999px; transition: all .2s ease; }
.filter-btn:hover { color: var(--tx-blue); border-color: var(--tx-blue); }
.filter-btn.active { background: var(--tx-blue); border-color: var(--tx-blue); color: #fff; }
.project-img { position: relative; display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 2.6rem; }
.img-cms   { background: linear-gradient(135deg, #3a3fd6, #7c6cf0); }
.img-app   { background: linear-gradient(135deg, #0f9d70, #20c78a); }
.img-office{ background: linear-gradient(135deg, #12335c, #2a6fb5); }
.portfolio-item { animation: fadeIn .4s ease; }

/* Contact */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--tx-border); border-radius: .9rem; padding: 1.25rem; margin-bottom: 1rem; transition: transform .3s ease, box-shadow .3s ease; }
.contact-card:hover { transform: translateX(6px); box-shadow: 0 10px 28px rgba(11,99,229,.12); }
.contact-card h3 { font-size: .9rem; font-weight: 700; margin: 0 0 .2rem; }
.contact-card p, .contact-card a { font-size: .84rem; color: var(--tx-muted); margin: 0; }
.contact-card a:hover { color: var(--tx-blue); }
.form-panel { background: #fff; border: 1px solid var(--tx-border); border-radius: 1rem; padding: 2rem; box-shadow: 0 12px 32px rgba(15,27,51,.06); }
.form-panel .form-label { font-size: .8rem; font-weight: 600; }
.form-panel .form-control, .form-panel .form-select { border-radius: .6rem; padding: .7rem .9rem; font-size: .9rem; border-color: var(--tx-border); }
.form-panel .form-control:focus, .form-panel .form-select:focus { border-color: var(--tx-blue); box-shadow: 0 0 0 .2rem rgba(11,99,229,.15); }
.form-success { display: none; }
.form-success.show { display: block; animation: fadeUp .5s ease; }
.map-ph { min-height: 240px; border-radius: 1rem; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(135deg, var(--tx-navy-800), var(--tx-navy-700)); }
.map-ph i { font-size: 2.2rem; color: var(--tx-cyan); animation: floatY 3s ease-in-out infinite; }

/* Legal */
.legal-toc { position: sticky; top: calc(var(--nav-h, 72px) + 28px); font-size: .84rem; }
.legal-toc a { display: block; padding: .4rem .9rem; border-left: 2px solid var(--tx-border); color: var(--tx-muted); }
.legal-toc a:hover { color: var(--tx-blue); border-left-color: var(--tx-blue); }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 2.2rem 0 .6rem; scroll-margin-top: calc(var(--nav-h, 72px) + 28px); }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: .9rem; color: var(--tx-muted); line-height: 1.75; }
.legal .updated { font-size: .8rem; color: var(--tx-muted); }

/* 404 */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem 1rem; }
.err-code { font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; background: linear-gradient(90deg, var(--tx-blue), var(--tx-cyan), var(--tx-blue)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 4s linear infinite; }


/* =====================================================
   HOME: HERO (v2) + ABOUT (v2)
   ===================================================== */
html, body { overflow-x: clip; }

/* ---------- Hero ---------- */
@keyframes orbDrift { to { transform: translate3d(40px,-30px,0) scale(1.12); } }
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,166,.55); } 70%,100% { box-shadow: 0 0 0 10px rgba(46,230,166,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes rotateWord { 0% { opacity: 0; transform: translateY(100%); } 6%,28% { opacity: 1; transform: none; } 34%,100% { opacity: 0; transform: translateY(-100%); } }
@keyframes blink { 50% { opacity: 0; } }

.hero-x { position: relative; isolation: isolate; overflow: hidden; color: #fff; display: flex; flex-direction: column;
  min-height: clamp(660px, calc(100vh - var(--nav-h, 72px)), 980px);
  background: linear-gradient(135deg, #040b1f 0%, #07173a 50%, #0a2a66 100%); }
.hero-x::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 65% 40%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at 65% 40%, #000 15%, transparent 72%); }
.hx-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); animation: orbDrift 16s ease-in-out infinite alternate; }
.hx-orb.o1 { width: 520px; height: 520px; background: #0b63e5; opacity: .5; top: -160px; right: -80px; }
.hx-orb.o2 { width: 420px; height: 420px; background: #1fa4ff; opacity: .28; bottom: -140px; left: -120px; animation-delay: -6s; }
.hx-orb.o3 { width: 300px; height: 300px; background: #7c6cf0; opacity: .25; top: 38%; left: 42%; animation-delay: -10s; }
.hx-canvas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hx-main { flex: 1; display: flex; align-items: center; padding: 4.5rem 0 3.5rem; }
.hx-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem; border-radius: 999px; font-size: .78rem; font-weight: 500;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee6a6; animation: dotPulse 2s infinite; }
.hx-title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin: 1.4rem 0 1.25rem; }
.rotate-wrap { position: relative; display: block; height: 1.22em; overflow: hidden; }
.rotate-wrap span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(100%); animation: rotateWord 9s infinite;
  background: linear-gradient(90deg, #1fa4ff, #8ccfff 60%, #6ea8ff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.rotate-wrap span:nth-child(2) { animation-delay: 3s; }
.rotate-wrap span:nth-child(3) { animation-delay: 6s; }
.hx-lead { max-width: 33rem; font-size: 1.08rem; line-height: 1.7; color: rgba(255,255,255,.78); margin-bottom: 2rem; }
.btn-hx { padding: .95rem 1.8rem; font-size: .95rem; border-radius: 999px; font-weight: 600; }
.btn-glow { box-shadow: 0 10px 30px rgba(11,99,229,.5); }
.btn-glow:hover { box-shadow: 0 14px 40px rgba(31,164,255,.6); }
.btn-glass { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-glass:hover { color: #fff; background: rgba(255,255,255,.17); transform: translateY(-2px); }
.hx-points { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.hx-points li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; font-size: .78rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: background .25s ease, transform .25s ease; }
.hx-points li:hover { background: rgba(31,164,255,.18); transform: translateY(-2px); }
.hx-points i { color: var(--tx-cyan); }

/* entrance (JS only, so no-JS shows everything) */
.js .hero-x [data-hx] { opacity: 0; animation: fadeUp .85s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }

/* Visual */
.hx-visual { position: relative; max-width: 540px; margin-inline: auto; padding: 2.5rem 1.5rem; }
.hx-ring { position: absolute; inset: 0; margin: auto; width: 96%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(31,164,255,.35); animation: spin 50s linear infinite; }
.hx-ring.r2 { width: 74%; border-style: solid; border-color: rgba(255,255,255,.08); animation-direction: reverse; animation-duration: 70s; }
.hx-win-wrap { position: relative; animation: floatY 7s ease-in-out infinite; }
.hx-window { border-radius: 1rem; overflow: hidden; background: rgba(8,20,48,.74); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.hx-bar { display: flex; align-items: center; gap: .4rem; padding: .75rem 1rem; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.hx-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.hx-bar i:nth-child(2) { background: #febc2e; } .hx-bar i:nth-child(3) { background: #28c840; }
.hx-bar span { margin-left: .6rem; font-size: .72rem; color: rgba(255,255,255,.5); }
.hx-code { padding: 1.25rem 1.4rem 1.5rem; line-height: 1.95; white-space: pre; overflow: hidden; }
.code-line { display: block; }
.js .code-line { opacity: 0; animation: fadeIn .5s ease forwards; animation-delay: calc(var(--i) * .35s + 1.1s); }
.in { padding-left: 1.5rem; }
.c-k { color: #c792ea; } .c-s { color: #a5e8a0; } .c-f { color: #82aaff; } .c-c { color: #6b7a99; } .c-p { color: #ffcb6b; }
.cursor { display: inline-block; width: 8px; height: 1em; margin-left: 4px; vertical-align: text-bottom; background: var(--tx-cyan); animation: blink 1s steps(1) infinite; }

.hx-par { position: absolute; transition: transform .25s ease-out; z-index: 2; }
.hx-par.p1 { top: .5rem; right: -.5rem; } .hx-par.p2 { bottom: 22%; left: -1.5rem; } .hx-par.p3 { bottom: .25rem; right: 8%; } .hx-par.p4 { top: -.25rem; left: 8%; }
.hx-chip { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; border-radius: .9rem; white-space: nowrap; font-size: .78rem; font-weight: 600; line-height: 1.25;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); box-shadow: 0 14px 34px rgba(0,0,0,.35); animation: floatY 6s ease-in-out infinite; }
.hx-par.p2 .hx-chip { animation-delay: -2s; } .hx-par.p3 .hx-chip { animation-delay: -4s; }
.hx-chip small { display: block; font-weight: 400; font-size: .68rem; opacity: .7; }
.hx-chip .ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: .6rem; color: #fff; }
.hx-tag { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tx-cyan); }

/* Marquee */
.hx-marquee { border-top: 1px solid rgba(255,255,255,.1); background: rgba(4,11,31,.55); backdrop-filter: blur(8px); padding: 1.05rem 0; }
.hx-marquee-label { flex: 0 0 auto; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); padding-right: 1.5rem; margin-right: 1rem; border-right: 1px solid rgba(255,255,255,.15); }
.marquee { display: flex; overflow: hidden; flex: 1; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: 0 0 auto; min-width: 100%; justify-content: space-around; gap: 3rem; padding-right: 3rem; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.8); white-space: nowrap; }
.marquee-track i { font-size: 1.25rem; color: var(--tx-cyan); }

/* ---------- About (v2) ---------- */
.about-x { position: relative; overflow: hidden; padding: 6rem 0; background: #fff; }
.about-x::before { content: ""; position: absolute; width: 560px; height: 560px; right: -200px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(11,99,229,.09), transparent 70%); }
.about-media-wrap { position: relative; }
.about-media-wrap::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid rgba(11,99,229,.22); border-radius: 1.7rem; z-index: 0; }
.about-media { position: relative; z-index: 1; min-height: 440px; aspect-ratio: 4 / 5; border-radius: 1.5rem; overflow: hidden; color: #fff; padding: 2.25rem; display: flex; align-items: flex-start;
  background:
    url("../images/server-room.jpg") center / cover,
    radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(circle at 20% 15%, rgba(31,164,255,.38), transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(124,108,240,.32), transparent 50%),
    linear-gradient(160deg, #0a1a3d, #050e24); }
.about-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,14,36,.55), transparent 55%); }
.about-media h3 { position: relative; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.15; }
.about-media h3::after { content: ""; display: block; width: 42px; height: 3px; margin-top: 1rem; border-radius: 2px; background: var(--tx-cyan); }
.about-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: .75rem; padding: .8rem 1.1rem; border-radius: .95rem; background: #fff; color: var(--tx-text); box-shadow: 0 16px 38px rgba(15,27,51,.22); animation: floatY 6s ease-in-out infinite; }
.about-float .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: .65rem; color: #fff; font-size: 1.1rem; }
.about-float strong { display: block; font-size: .82rem; line-height: 1.2; }
.about-float small { color: var(--tx-muted); font-size: .7rem; }
.about-float.f1 { top: 42%; right: 1rem; } .about-float.f2 { bottom: 1.25rem; left: 1rem; animation-delay: -3s; }
@media (min-width: 992px) { .about-float.f1 { right: -1.25rem; } .about-float.f2 { left: -1.25rem; } }
.about-body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.about-body > p { font-size: .95rem; line-height: 1.8; color: var(--tx-muted); }
.about-features { margin: 1.75rem 0 2rem; }
.about-feature { display: flex; gap: .9rem; height: 100%; padding: 1rem 1.1rem; border-radius: .9rem; background: #fff; border: 1px solid var(--tx-border); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.about-feature:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(11,99,229,.12); border-color: rgba(11,99,229,.3); }
.about-feature:hover .icon-tile { transform: rotate(-8deg) scale(1.1); }
.about-feature h3 { font-size: .9rem; font-weight: 700; margin: 0 0 .2rem; }
.about-feature p { font-size: .78rem; line-height: 1.5; color: var(--tx-muted); margin: 0; }
.icon-tile.sm { flex: 0 0 42px; width: 42px; height: 42px; font-size: 1.1rem; border-radius: .65rem; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-x [data-hx], .js .code-line { opacity: 1 !important; transform: none !important; }
  .rotate-wrap span { opacity: 0 !important; transform: none !important; }
  .rotate-wrap span:first-child { opacity: 1 !important; }
}


/* Digital Marketing service */
.bg-orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.svc-mkt { background: linear-gradient(135deg, #e8590c, #f59f00); }


/* Uploaded logo image */
.tx-logo-img { display: block; width: auto; height: var(--logo-h, 56px); max-width: min(360px, 64vw); object-fit: contain; }
@media (max-width: 1199px) { .tx-logo-img { height: var(--logo-h-m, 44px); } }
.tx-nav .navbar-brand .tx-logo-img { transition: transform .3s ease; }
.tx-nav.is-scrolled .tx-logo-img { transform: scale(.9); }


/* Language switcher */
.lang-switch { display: flex; gap: .25rem; list-style: none; margin: 0 1rem 0 .5rem; padding: .2rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.lang-switch a { display: block; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.75); transition: background .2s ease, color .2s ease; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.active { background: var(--tx-blue); color: #fff; }
@media (max-width: 1199px) { .lang-switch { align-self: flex-start; margin: .75rem 0; } }
