/* ============================================================
   Dependable Digital Solutions — stylesheet
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-navy:   #0a0f1e;
  --brand-blue:   #2563eb;
  --brand-cyan:   #06b6d4;
  --brand-light:  #f0f6ff;
  --text-primary: #0f172a;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --white:        #ffffff;
  --radius:       0.75rem;
  --radius-sm:    0.375rem;
  --shadow:       0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition:   150ms ease;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
}

.section__header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section__header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.highlight {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}
.btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ---------- Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 1rem;
}
.tag-list li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-blue);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-wordmark {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text-primary); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
  background: var(--brand-navy);
  color: var(--white);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-block: 5rem;
}

.hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(6,182,212,0.35);
  border-radius: 999px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Override ghost button colours for dark hero */
.hero .btn--ghost {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}
.hero .btn--ghost:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

/* ---------- SERVICES ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- AI service card accent ---------- */
.service-card--ai {
  border-color: rgba(37,99,235,0.3);
  background: linear-gradient(135deg, #f0f6ff 0%, #e0f2fe 100%);
}

/* ---------- AI SECTION ---------- */
.ai-section {
  background: linear-gradient(160deg, #0a0f1e 0%, #0f1e3a 60%, #0a0f1e 100%);
  color: var(--white);
}

.ai-section .section__eyebrow { color: var(--brand-cyan); }

.ai-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.ai-section__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}

.ai-section__content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.ai-section__content strong { color: var(--brand-cyan); font-weight: 600; }

.ai-section__pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-pillar {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.ai-pillar__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-cyan);
  letter-spacing: 0.05em;
  min-width: 2rem;
  padding-top: 0.125rem;
}

.ai-pillar h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.ai-pillar p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* AI tech items get a cyan tint */
.tech-item--ai {
  border-color: rgba(6,182,212,0.3);
  color: var(--brand-cyan);
}
.tech-item--ai:hover {
  background: rgba(6,182,212,0.15);
  border-color: var(--brand-cyan);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--brand-light);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.about__photo-wrap {
  margin-bottom: 1.5rem;
}

.about__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.inline-link {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.inline-link:hover { color: #1d4ed8; }

/* ---------- Career timeline ---------- */
.timeline {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline__item {
  position: relative;
  padding-left: 1.25rem;
}

.timeline__marker {
  position: absolute;
  left: -1.44rem;
  top: 0.35rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline__item--current .timeline__marker {
  background: var(--brand-blue);
  box-shadow: 0 0 0 2px var(--brand-blue);
}

.timeline__role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline__company {
  font-size: 0.8rem;
  color: var(--brand-blue);
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.timeline__body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.about__personal {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.about__personal p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.about__credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cred-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0.7;
}

.cred-card--active { opacity: 1; border-left: 3px solid var(--brand-blue); }

.cred-card__badge {
  width: 1.5rem;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.cred-card--active .cred-card__badge {
  background: var(--brand-blue);
  color: var(--white);
}

.cred-card strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.cred-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about__edu {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-cyan);
  box-shadow: var(--shadow);
}

.about__edu strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about__edu span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- CLIENTS ---------- */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.client-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.client-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.client-card__logo {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--brand-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.client-card__logo--img {
  background: #1a1a1a;
  padding: 0.25rem;
  overflow: hidden;
}

.client-card__logo--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-card__logo--deco {
  background: linear-gradient(135deg, #0f172a, #1e40af);
}

.client-card__header h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.client-card__industry {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.client-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.client-card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-blue);
  transition: color var(--transition);
}
.client-card__link:hover { color: #1d4ed8; }

/* ---------- TECH GRID ---------- */
.credentials { background: var(--brand-navy); color: var(--white); }
.credentials .section__eyebrow { color: var(--brand-cyan); }
.credentials .section__header h2 { color: var(--white); }
.credentials .section__header p { color: rgba(255,255,255,0.6); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.tech-item {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.04);
  transition: background var(--transition), border-color var(--transition);
}
.tech-item:hover {
  background: rgba(37,99,235,0.2);
  border-color: var(--brand-blue);
}

/* ---------- CONTACT ---------- */
.contact { background: var(--brand-light); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.contact-link:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.contact-link__icon {
  width: 2rem;
  height: 2rem;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.5);
  padding-block: 2rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.footer__copy { font-size: 0.8125rem; }
.footer__tagline { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 4rem;
    inset-inline: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .logo-wordmark { display: none; }

  .about__inner,
  .ai-section__layout,
  .contact__inner { grid-template-columns: 1fr; gap: 2rem; }

  .services__grid { grid-template-columns: 1fr; }
  .clients__grid  { grid-template-columns: 1fr; }

  .section { padding-block: 3rem; }
  .hero__inner { padding-block: 3rem; }
}
