/* ============================================================
   টেকওয়েভ সলিউশনস — IT company demo (premium multi-page)
   Dark professional theme
   ============================================================ */

:root {
  --bg: #0b0f19;
  --panel: #111827;
  --panel2: #151d2e;
  --border: #1f2937;
  --primary: #6366f1;
  --primary2: #8b5cf6;
  --accent: #22d3ee;
  --ink: #e5e7eb;
  --text: #9ca3af;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(99, 102, 241, 0.4); color: #fff; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 84px 0; scroll-margin-top: 74px; }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 50px; }
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.section-head p { color: var(--text); font-size: 15.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 11px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(99, 102, 241, 0.45); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: 13.5px; }

/* ---------- header ---------- */
#site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
#site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: #fff; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  font-size: 17px;
}
.brand span { color: var(--accent); }
#nav-menu { display: flex; gap: 26px; }
#nav-menu a { font-size: 14.5px; font-weight: 600; color: var(--text); padding: 6px 0; transition: color 0.15s ease; }
#nav-menu a:hover { color: #fff; }
#nav-menu a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-btn:hover { border-color: var(--primary); color: #fff; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform 0.22s ease, opacity 0.22s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (index) ---------- */
.hero {
  position: relative;
  padding: 168px 0 110px;
  background:
    radial-gradient(640px 380px at 82% 6%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(520px 320px at 8% 90%, rgba(34, 211, 238, 0.10), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 16px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 16.5px; color: var(--text); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-photo {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.hero-float {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.hero-float b { color: var(--accent); font-size: 17px; }

/* ---------- stats (counters) ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding: 48px 0; }
.stat b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; color: #fff; }
.stat b i { font-style: normal; color: var(--accent); }
.stat span { font-size: 13.5px; color: var(--text); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 24px;
  margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text); }
.card a.more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.card a.more:hover { text-decoration: underline; }

/* ---------- photo cards (projects) ---------- */
.photo-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.photo-card .ph { height: 180px; overflow: hidden; }
.photo-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.photo-card:hover .ph img { transform: scale(1.05); }
.photo-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.photo-card .cat {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
}
.photo-card h3 { font-size: 16.5px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.photo-card p { font-size: 13.5px; color: var(--text); }

/* ---------- filter buttons ---------- */
.filter-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter-btn {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  transition: all 0.18s ease;
}
.filter-btn:hover { color: #fff; border-color: var(--primary); }
.filter-btn.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; }
.card.hide { display: none; }

/* ---------- tabs (services) ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  transition: all 0.18s ease;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary2)); border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- testimonial slider ---------- */
.slider-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.slide { display: none; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 38px 34px; text-align: center; }
.slide.active { display: block; animation: fadein 0.4s ease; }
.slide .stars { color: #fbbf24; font-size: 18px; letter-spacing: 3px; margin-bottom: 14px; }
.slide blockquote { font-size: 16.5px; color: var(--ink); font-style: italic; line-height: 1.9; margin-bottom: 18px; }
.slide .who { font-size: 14px; font-weight: 700; color: var(--white); }
.slide .who > span { font-size: 14px; font-weight: 700; color: var(--white); }
.slide .who .role { display: block; font-size: 12.5px; color: var(--text); font-weight: 500; margin-top: 2px; }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 26px; }
.slider-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  transition: all 0.18s ease;
}
.slider-btn:hover { border-color: var(--primary); color: #fff; }
.slider-dots { display: flex; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: none; padding: 0; transition: all 0.18s ease; }
.dot.active { background: var(--accent); width: 22px; border-radius: 999px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; padding: 28px 20px 24px; transition: transform 0.2s ease, border-color 0.2s ease; }
.team-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.team-card .avatar {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.av-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.av-2 { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.av-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-4 { background: linear-gradient(135deg, #10b981, #84cc16); }
.team-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.team-card p { font-size: 13px; color: var(--text); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- tech strip ---------- */
.techstrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel); }
.tech-row { display: flex; justify-content: center; gap: 38px; flex-wrap: wrap; padding: 34px 0; }
.tech-row span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; font-weight: 700; color: #6b7280; letter-spacing: 1px; transition: color 0.15s ease; }
.tech-row span:hover { color: var(--accent); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 18px; text-align: center; }
.process-card .num {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-card h3 { font-size: 15.5px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.process-card p { font-size: 13px; color: var(--text); }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.info-card { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
.info-card .ico { font-size: 22px; flex-shrink: 0; }
.info-card h3 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.info-card p { font-size: 13.5px; color: var(--text); }
.form-card { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 34px 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field .err { display: none; font-size: 12px; color: #f87171; margin-top: 5px; }
.form-field.invalid input, .form-field.invalid textarea { border-color: #dc2626; }
.form-field.invalid .err { display: block; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: fadein 0.4s ease; }
.form-success .ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 30px;
  margin-bottom: 16px;
}
.form-success h3 { font-size: 19px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--text); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- cta band ---------- */
.cta-band { text-align: center; background: linear-gradient(135deg, #312e81, #1e1b4b); padding: 64px 0; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c7d2fe; max-width: 520px; margin: 0 auto 26px; font-size: 15px; }
.cta-band .btn-primary { background: #fff; color: #312e81; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); background: #080b13; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.9fr 0.9fr 1fr; gap: 40px; padding: 56px 20px 36px; }
.footer-brand p { font-size: 13.5px; color: var(--text); margin-top: 12px; max-width: 280px; }
.footer-col h3 { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 10px; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 18px 20px; font-size: 12.5px; color: #6b7280; }
.demo-note { margin-top: 4px; }
.demo-note a { color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 158px 0 70px;
  text-align: center;
  background:
    radial-gradient(560px 300px at 50% 0%, rgba(99, 102, 241, 0.20), transparent 70%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { max-width: 560px; margin: 0 auto; color: var(--text); font-size: 15.5px; }

/* ---------- about split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .ph { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.split .ph img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.split h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.split p { color: var(--text); margin-bottom: 12px; font-size: 15px; }
.split ul { margin-top: 12px; }
.split ul li { padding-left: 26px; position: relative; margin-bottom: 9px; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.split ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  #nav-menu {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  #nav-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  #nav-menu a { padding: 10px 4px; font-size: 15.5px; border-bottom: 1px solid var(--border); }
  #nav-menu a:last-child { border-bottom: none; }
  .hero { padding: 140px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
