/* ============================================================
   T-Tech Solutions — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:       #1d4ed8;
  --primary-dark:  #1e3a8a;
  --primary-light: #dbeafe;
  --accent:        #7c3aed;
  --green:         #16a34a;
  --green-light:   #dcfce7;
  --text:          #111827;
  --text-sec:      #6b7280;
  --text-muted:    #9ca3af;
  --bg:            #f3f4f6;
  --bg-soft:       #f9fafb;
  --white:         #ffffff;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md:     0 4px 24px rgba(0,0,0,.1);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.13);
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 100px 0; }
.section-sm  { padding: 64px 0; }

/* ── Typography ────────────────────────────────────────────── */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
  display: block;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; line-height: 1.15; color: var(--text);
}
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
p  { line-height: 1.75; color: var(--text-sec); }

/* Technical / monospace elements */
code, .tech-spec, .stack-item, .svc-tag, .tag, .proj-tag {
  font-family: 'Courier New', 'Consolas', monospace;
}
.lead {
  font-size: 17px; line-height: 1.75;
  color: var(--text-sec); max-width: 600px;
  margin-top: 12px;
}
.text-center { text-align: center; }
.text-center .lead { margin: 12px auto 0; }
.grad-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer; border: none;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  text-decoration: none; white-space: nowrap;
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.45);
  filter: brightness(1.08);
}
.btn-outline  { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-white    { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #f0f4ff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,.2); }
.btn-ghost    { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.btn-green    { background: linear-gradient(135deg,#16a34a,#15803d); color: #fff; }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,.35); }
.btn-sm   { padding: 8px 18px; font-size: 13px; }
.btn-lg   { padding: 15px 34px; font-size: 15px; font-weight: 700; }
.btn-full { width: 100%; justify-content: center; }

/* ── Badges ────────────────────────────────────────────────── */
.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 4px 12px; border-radius: 99px; }
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-green  { background: var(--green-light);   color: var(--green);   }
.badge-purple { background: #ede9fe; color: #7c3aed; }

/* ── Icon Boxes ────────────────────────────────────────────── */
.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ib-blue   { background: var(--primary-light); }
.ib-green  { background: var(--green-light);   }
.ib-purple { background: #ede9fe; }
.ib-orange { background: #ffedd5; }
.ib-teal   { background: #ccfbf1; }
.ib-pink   { background: #fce7f3; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
}
.card-body { padding: 28px; }
.card-hover { transition: all .25s; position: relative; overflow: hidden; }
.card-hover::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card-hover:hover::before { transform: scaleX(1); }

/* ── Check List ────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-sec); }
.check-icon {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.check-icon-dark {
  background: rgba(74,222,128,.15);
  border: 1px solid rgba(74,222,128,.3);
  color: #4ade80;
}

/* ── Section Header ────────────────────────────────────────── */
.section-header { margin-bottom: 56px; }

/* ── Trust Bar ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-sec); font-weight: 500;
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar { padding: 56px 0; background: var(--white); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat-num {
  font-family: 'Montserrat', sans-serif; font-size: 38px;
  font-weight: 800; color: var(--primary);
}
.stat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
@media(max-width: 640px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 50%, #1a0a30 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.25), transparent 70%);
  pointer-events: none;
}
.cta-section h2   { color: #fff; position: relative; }
.cta-section p    { color: rgba(255,255,255,.7); margin: 14px auto 32px; max-width: 520px; position: relative; font-size: 16px; }
.cta-buttons      { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Form ──────────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  font-size: 14px; color: var(--text);
  font-family: 'Montserrat', sans-serif;
  transition: all .18s; outline: none;
}
.form-control:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding: 148px 0 88px;
  background: linear-gradient(135deg, #0a0f1e 0%, #0f172a 50%, #1a1040 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(124,58,237,.28), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute;
  bottom: -60px; left: -60px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(59,130,246,.14), transparent 70%);
  pointer-events: none;
}
.page-hero-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.page-hero .eyebrow { color: rgba(255,255,255,.5); letter-spacing: .14em; }
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero .lead {
  color: rgba(255,255,255,.65);
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
}
.page-hero .breadcrumb { justify-content: center; margin-bottom: 24px; }

/* ── Dark section utility ──────────────────────────────────── */
.section-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  position: relative;
}
.section-dark h2 { color: #fff; }
.section-dark p  { color: rgba(255,255,255,.65); }
.section-dark .eyebrow { color: rgba(255,255,255,.45); }

/* ── Improved card hover ───────────────────────────────────── */
.card-hover {
  transition: all .28s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.card-hover::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card-hover:hover {
  box-shadow: 0 16px 56px rgba(0,0,0,.12);
  transform: translateY(-5px); border-color: transparent;
}
.card-hover:hover::before { transform: scaleX(1); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.breadcrumb a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.9); }
.breadcrumb span { font-size: 13px; color: rgba(255,255,255,.3); }

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.logo-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); }
.logo-name span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 13.5px; color: var(--text-sec);
  padding: 7px 13px; border-radius: 8px;
  font-weight: 500; transition: all .18s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-menu {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 199;
  padding: 20px 24px; overflow-y: auto;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px; font-weight: 500; color: var(--text);
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--primary); }
.mobile-menu .btn { margin-top: 20px; }
@media(max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
}

/* ── FOOTER ────────────────────────────────────────────────── */
footer { background: #070c18; color: #fff; padding: 68px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-mark { background: rgba(255,255,255,.12); }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-name span { color: #93c5fd; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.48); line-height: 1.7; }
.footer-col-title {
  font-family: 'Syne', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.32); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.58); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-contact-row a { font-size: 13px; color: rgba(255,255,255,.58); transition: color .2s; }
.footer-contact-row a:hover { color: #fff; }
.footer-contact-row span { font-size: 13px; color: rgba(255,255,255,.58); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.32); }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all .2s;
}
.social-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
@media(max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media(max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.s1 { transition-delay: .08s; }
.s2 { transition-delay: .16s; }
.s3 { transition-delay: .24s; }
.s4 { transition-delay: .32s; }

/* ── Pulse dot ─────────────────────────────────────────────── */
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.55;transform:scale(1.25);} }

/* ── Divider ───────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); }

/* ── Nav scroll shadow ─────────────────────────────────────── */
nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  border-bottom-color: rgba(229,231,235,.8);
}

/* ── Scroll to top ─────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,99,235,.4);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,99,235,.5); }
.scroll-top svg { width: 20px; height: 20px; }

/* ── Selection colour ──────────────────────────────────────── */
::selection { background: rgba(37,99,235,.18); color: var(--text); }

/* ── Focus ring ────────────────────────────────────────────── */
:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; border-radius: 4px; }
