/* ==========================================================================
   TechByCoders — techbycoders.com
   Theme carried over from Hammad's existing portfolio (same variables, same
   font, same icon set) so the brand stays visually continuous:
     --first-color  rgb(110, 87, 224)   indigo  (primary)
     --second-color rgb(0, 201, 255)    cyan    (accent)
     --third-color  rgb(192, 166, 49)   gold    (small highlights)
     body           rgb(250, 250, 250)  Poppins  Unicons line
   ========================================================================== */

:root {
  --body-color: rgb(250, 250, 250);
  --color-white: rgb(255, 255, 255);

  --text-color: rgb(38, 38, 46);
  --text-color-second: rgb(68, 68, 68);
  --text-color-third: rgb(30, 159, 171);
  --text-muted: rgb(112, 112, 124);

  --first-color: rgb(110, 87, 224);
  --first-color-hover: rgb(40, 91, 212);
  --first-color-soft: rgba(110, 87, 224, 0.08);

  --second-color: rgb(0, 201, 255);
  --third-color: rgb(192, 166, 49);

  --line: rgba(0, 0, 0, 0.08);
  --first-shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 10px var(--first-shadow-color);
  --shadow-md: 0 10px 30px rgba(24, 22, 60, 0.10);
  --shadow-lg: 0 22px 60px rgba(24, 22, 60, 0.16);

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--body-color);
  color: var(--text-color-second);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--first-color); text-decoration: none; }
a:hover { color: var(--first-color-hover); }
ul, ol { list-style: none; }

h1, h2, h3 { color: var(--text-color); line-height: 1.22; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.075rem; font-weight: 600; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--first-color); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- header ---------- */
#header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 250, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
#header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(24, 22, 60, 0.06); }

.nav-wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 22px;
}

.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.16rem; color: var(--text-color);
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--text-color); }
.logo-accent { color: var(--first-color); }
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--first-color), var(--second-color));
  color: #fff; font-size: 19px;
  box-shadow: 0 6px 16px rgba(110, 87, 224, 0.32);
}

.nav-menu { margin-left: auto; }
.nav-menu ul { display: flex; gap: 4px; }
.nav-link {
  display: block; padding: 9px 13px; border-radius: 9px;
  color: var(--text-color-second); font-size: .93rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link.active-link { background: var(--first-color-soft); color: var(--first-color); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; font-size: 22px; color: var(--text-color); cursor: pointer;
  transition: background .2s;
}
.nav-menu-btn:hover { background: var(--first-color-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 1px solid transparent;
  padding: 11px 22px; font-family: inherit; font-size: .92rem; font-weight: 600;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .22s, background .22s, color .22s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--first-color), rgb(88, 120, 232));
  color: #fff; box-shadow: 0 10px 24px rgba(110, 87, 224, 0.28);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(110, 87, 224, 0.36); }

.btn-ghost { background: var(--color-white); color: var(--text-color); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--first-color); border-color: rgba(110, 87, 224, 0.35); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--first-color); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18); }
.btn-light:hover { color: var(--first-color-hover); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { padding: 62px 0 46px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background:
    radial-gradient(46% 60% at 14% 8%, rgba(110, 87, 224, 0.16), transparent 62%),
    radial-gradient(40% 55% at 88% 2%, rgba(0, 201, 255, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 46px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 600; letter-spacing: .10em; text-transform: uppercase;
  color: var(--first-color); margin-bottom: 14px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--second-color); box-shadow: 0 0 0 4px rgba(0, 201, 255, 0.18);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.eyebrow--light .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2); }

.grad {
  background: linear-gradient(120deg, var(--first-color), var(--second-color));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede { font-size: 1.075rem; max-width: 60ch; margin-top: 18px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta--center { justify-content: center; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px;
  font-size: .875rem; color: var(--text-muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts i { color: var(--first-color); font-size: 17px; }

.hero-card {
  background: var(--color-white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md);
}
.card-label {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.facts { display: grid; gap: 12px; }
.facts > div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 11px; }
.facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.facts dt { font-size: .84rem; color: var(--text-muted); }
.facts dd { font-size: .88rem; font-weight: 500; color: var(--text-color); text-align: right; }

.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; margin-top: 18px; }
.card-link:hover i { transform: translateX(3px); }
.card-link i { transition: transform .2s; }

.trust-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 44px;
}
.trust-strip li {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; font-size: .855rem; color: var(--text-color-second); box-shadow: var(--shadow-sm);
}
.trust-strip i { color: var(--first-color); font-size: 20px; line-height: 1.3; flex: none; }
.trust-strip--legal li { border-color: rgba(110, 87, 224, 0.28); background: var(--first-color-soft); }

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: linear-gradient(180deg, rgba(110, 87, 224, 0.035), rgba(0, 201, 255, 0.045)); }

.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-sub { margin-top: 12px; color: var(--text-muted); font-size: 1.01rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(110, 87, 224, 0.28); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .935rem; color: var(--text-muted); }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--first-color-soft); color: var(--first-color); font-size: 24px; margin-bottom: 16px;
}

/* ---------- work ---------- */
.work-card {
  display: block; background: var(--color-white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 201, 255, 0.45); }
.work-tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-color-third); background: rgba(30, 159, 171, 0.10);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 13px;
}
.work-card h3 { margin-bottom: 8px; }
.work-card p { font-size: .92rem; color: var(--text-muted); }
.work-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-size: .86rem; font-weight: 600; color: var(--first-color); }
.center-note { text-align: center; margin-top: 34px; font-size: .93rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li {
  position: relative; background: var(--color-white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: block; font-size: 1.6rem; font-weight: 700; line-height: 1;
  background: linear-gradient(120deg, var(--first-color), var(--second-color));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; font-size: 1rem; }
.steps p { font-size: .9rem; color: var(--text-muted); }

/* ---------- compliance ---------- */
.compliance-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 42px; align-items: start; }

.ticks { display: grid; gap: 15px; margin-top: 26px; }
.ticks li { display: flex; gap: 12px; font-size: .945rem; color: var(--text-muted); }
.ticks i { color: var(--first-color); font-size: 21px; line-height: 1.35; flex: none; }
.ticks strong { color: var(--text-color); font-weight: 600; }

.panel {
  background: var(--color-white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; box-shadow: var(--shadow-md); position: sticky; top: 92px;
}
.panel h3 { margin-bottom: 18px; }
.facts--panel dt { font-size: .82rem; }
.facts--panel dd { font-size: .855rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badge-row li {
  display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 500;
  background: var(--first-color-soft); color: var(--first-color);
  border: 1px solid rgba(110, 87, 224, 0.25); border-radius: 999px; padding: 6px 13px;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 46px; align-items: start; }

.about-photo { position: sticky; top: 104px; }
.about-photo img {
  width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg); border: 4px solid #fff;
}
.about-tag {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -22px;
  background: var(--color-white); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 20px; text-align: center; box-shadow: var(--shadow-md); white-space: nowrap;
}
.about-tag strong { display: block; font-size: .95rem; color: var(--text-color); }
.about-tag span { font-size: .78rem; color: var(--text-muted); }

.about-grid p { margin-top: 14px; }
.about-grid > div > h2 { margin-bottom: 6px; }

.cred-block {
  margin-top: 30px; background: var(--color-white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.cred-block h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.cred-meta { font-size: .85rem; color: var(--text-muted); }
.cred-list { margin-top: 14px; display: grid; gap: 9px; }
.cred-list li {
  display: flex; justify-content: space-between; gap: 16px; font-size: .89rem;
  border-bottom: 1px dashed var(--line); padding-bottom: 8px;
}
.cred-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cred-list span { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }

/* ---------- contact ---------- */
.section-contact { padding-bottom: 96px; }
.contact-card {
  background: linear-gradient(135deg, rgb(74, 58, 176), rgb(58, 96, 208) 52%, rgb(0, 138, 190));
  border-radius: 28px; padding: 58px 42px; text-align: center; color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact-card::after {
  content: ''; position: absolute; inset: auto -10% -60% -10%; height: 320px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.contact-card h2 { color: #fff; }
.contact-card > p { max-width: 60ch; margin: 14px auto 0; }
.contact-card .hero-cta { position: relative; }

.social-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 40px; position: relative;
}
.social-grid a {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff; border-radius: 999px; padding: 9px 17px; font-size: .88rem; font-weight: 500;
  transition: background .2s, transform .2s;
}
.social-grid a:hover { background: rgba(255, 255, 255, 0.24); color: #fff; transform: translateY(-2px); }
.social-grid i { font-size: 18px; }

/* ---------- footer ---------- */
.footer { background: rgb(24, 22, 42); color: rgba(255, 255, 255, 0.72); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 34px; }
.footer-logo { font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.footer-logo .logo-accent { color: rgb(126, 108, 235); }
.footer-line { font-size: .89rem; margin-top: 10px; }
.footer a { color: rgba(255, 255, 255, 0.78); }
.footer a:hover { color: #fff; }
.footer-head { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; font-size: .89rem; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 20px;
  font-size: .82rem;
}
.footer-meta { color: rgba(255, 255, 255, 0.5); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(0, 201, 255, 0.75); outline-offset: 3px; border-radius: 6px;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compliance-grid { grid-template-columns: 1fr; gap: 32px; }
  .panel { position: static; }
  .about-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 0 22px;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s;
  }
  .nav-menu.open { max-height: 340px; padding: 12px 22px 18px; }
  .nav-menu ul { flex-direction: column; gap: 2px; }
  .nav-link { padding: 11px 12px; }
  .nav-menu-btn { display: grid; place-items: center; }
  .nav-actions .btn-primary { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 300px; }
}

@media (max-width: 620px) {
  .section { padding: 58px 0; }
  .grid-3, .steps, .trust-strip { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 34px; }
  .contact-card { padding: 44px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  /* the full email address is long: give the buttons more text room on narrow screens
     instead of letting the label clip inside a nowrap pill */
  .btn-lg { font-size: .94rem; padding: 13px 18px; }
  .contact-card .btn-lg { font-size: .9rem; }
  .about-tag { position: static; transform: none; margin-top: 14px; white-space: normal; }
  .cred-list li { flex-direction: column; gap: 2px; }
}

/* very narrow phones: shrink further, and as a last resort let the long email
   address wrap inside the button rather than clipping */
@media (max-width: 380px) {
  .btn-lg { font-size: .86rem; padding: 12px 14px; }
  a[href^="mailto:"].btn { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  #header, .hero::before, .contact-card, .social-grid, .nav-actions { display: none; }
  body { background: #fff; }
}
