/* Techline Systems — brand layer (IT / B2B polish) */
:root {
  --tls-navy: #0f172a;
  --tls-navy-soft: #1e293b;
  --tls-accent: #dc2626;
  --tls-accent-hover: #b91c1c;
  --tls-link: #2563eb;
  --tls-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.tls-topbar {
  background: linear-gradient(135deg, var(--tls-navy) 0%, var(--tls-navy-soft) 55%, #334155 100%);
  border-bottom: 3px solid var(--tls-accent);
}

.tls-topbar a:hover {
  color: #fecaca !important;
}

.tls-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.tls-logo-mark {
  color: var(--tls-accent);
}

.tls-nav-link {
  color: var(--tls-navy);
  transition: color 0.2s ease;
}

.tls-nav-link:hover,
.tls-nav-active {
  color: var(--tls-accent) !important;
}

.tls-btn-primary {
  background-color: var(--tls-accent);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.tls-btn-primary:hover {
  background-color: var(--tls-accent-hover);
  transform: translateY(-1px);
}

.tls-hero-overlay {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.45));
}

.tls-card-project {
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.tls-card-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.tls-cta-band {
  background: linear-gradient(90deg, var(--tls-navy) 0%, var(--tls-accent) 100%);
}

.tls-footer a:hover {
  color: #fecaca;
}

/* ---------- Icon “plates” (replace missing photos / hero backgrounds) ---------- */
.tls-hero-visual {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(220, 38, 38, 0.22), transparent 50%),
    radial-gradient(ellipse 90% 70% at 100% 80%, rgba(37, 99, 235, 0.12), transparent 45%),
    linear-gradient(165deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
}

@media (min-width: 768px) {
  .tls-hero-visual {
    min-height: 280px;
  }
}

.tls-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 45%);
  pointer-events: none;
}

.tls-plate-scene {
  perspective: 900px;
  perspective-origin: 50% 40%;
}

.tls-plate {
  margin: 0 auto;
  width: min(280px, 85vw);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.45) 0%, rgba(15, 23, 42, 0.9) 42%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 28px 55px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-14deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tls-plate:hover {
  transform: rotateX(10deg) rotateY(-10deg) translateZ(18px);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(220, 38, 38, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.tls-plate span[class^="icon-"],
.tls-plate span[class*=" icon-"],
.tls-plate i[class^="icon-"],
.tls-plate i[class*=" icon-"] {
  font-size: clamp(4.5rem, 14vw, 6.75rem);
  color: rgba(248, 250, 252, 0.96);
  line-height: 1;
  transform: translateZ(24px);
  filter:
    drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 36px rgba(220, 38, 38, 0.25));
}

/* Compact plates for grids (services / portfolio) */
.tls-plate-sm {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 11;
  min-height: 180px;
  border-radius: 16px;
  transform: rotateX(8deg) rotateY(-10deg);
}

.tls-plate-sm:hover {
  transform: rotateX(6deg) rotateY(-6deg) translateZ(10px);
}

.tls-plate-sm span[class^="icon-"],
.tls-plate-sm span[class*=" icon-"],
.tls-plate-sm i[class^="icon-"],
.tls-plate-sm i[class*=" icon-"] {
  font-size: clamp(3rem, 8vw, 4.5rem);
  filter:
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 24px rgba(59, 130, 246, 0.2));
}

/* Team avatar initials (no photos required) */
.tls-avatar-3d {
  width: 5.25rem;
  height: 5.25rem;
  margin-inline: auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8fafc;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #334155, #0f172a 55%, #1e293b);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(220, 38, 38, 0.2) inset;
  transform-style: preserve-3d;
  transform: rotateX(6deg);
}

/* Insight / testimonial quote block */
.tls-quote-chip {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1e293b, #334155);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}

.tls-quote-chip .icon-user {
  font-size: 1.5rem;
  color: #94a3b8;
}

/* Owl carousel tweaks when photos removed */
.tls-testimonials .owl-dots {
  margin-top: 2rem !important;
}
