:root {
  --hd-primary: #1450de;
  --hd-navy: #102c6d;
  --hd-muted: #475569;
  --hd-faint: #94a3b8;
  --hd-bg: #f7f7ff;
  --hd-grad: linear-gradient(120deg, #041334, #175cff);
}

/* ===================== HERO ===================== */
.hd-hero {
  background-color: var(--hd-bg);
  background-image: linear-gradient(rgba(20,80,222,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,80,222,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  padding: 65px 0 65px;
  overflow: hidden;
  position: relative;
}
.hd-hero-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}
.hd-hero-left { flex: 1 1 480px; }
.hd-hero-right {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hd-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,80,222,0.07);
  border: 1px solid rgba(20,80,222,0.22);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12.5px;
  color: var(--hd-primary);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}
.hd-badge-dot {
  width: 6px; height: 6px;
  background: var(--hd-primary);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(20,80,222,0.6);
  animation: hd-pulse 1.8s ease-in-out infinite;
}
@keyframes hd-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.45;transform:scale(0.72)} }

.hd-hero-h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  text-transform: capitalize;
  color: var(--hd-navy);
  line-height: 1.17;
  margin: 0 0 18px;
}
.hd-t-grad {
  background: linear-gradient(135deg, var(--hd-primary) 0%, var(--hd-navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hd-hero-sub {
  font-size: 1.05rem;
  color: var(--hd-muted);
  line-height: 1.72;
  max-width: 500px;
  margin: 0 0 28px;
}
.hd-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hd-grad);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 60px;
  text-decoration: none;
  transition: opacity 0.22s, transform 0.22s;
  box-shadow: 0 4px 18px rgba(23,92,255,0.28);
  border: none;
  cursor: pointer;
}
.hd-btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }
.hd-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--hd-navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 60px;
  text-decoration: none;
  border: 2px solid rgba(20,80,222,0.35);
  transition: border-color 0.22s, color 0.22s, transform 0.22s;
  cursor: pointer;
}
.hd-btn-outline:hover { border-color: #1450de; color: #1450de; transform: translateY(-2px); }

/* Hero Developer Card Stack */
.hd-card-stack {
  position: relative;
  width: 380px;
  height: 360px;
  animation: hd-card-in 0.65s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}
@keyframes hd-card-in { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

.hd-dev-card {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid rgba(20,80,222,0.12);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(20,80,222,0.10);
  padding: 26px 26px 22px;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1), opacity 0.55s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
}
.hd-dev-ribbon {
  position: absolute;
  top: 16px; right: -30px;
  background: var(--hd-grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 34px;
  transform: rotate(40deg);
  box-shadow: 0 3px 10px rgba(20,80,222,0.3);
}

/* Stack depth positions */
.hd-dev-card.hd-pos-0 { transform: translate(0,0) scale(1) rotate(0deg); z-index: 3; opacity: 1; }
.hd-dev-card.hd-pos-1 { transform: translate(20px,16px) scale(0.94) rotate(3deg); z-index: 2; opacity: 0.75; box-shadow: 0 6px 26px rgba(20,80,222,0.08); }
.hd-dev-card.hd-pos-2 { transform: translate(38px,32px) scale(0.88) rotate(6deg); z-index: 1; opacity: 0.45; box-shadow: 0 6px 26px rgba(20,80,222,0.06); }
.hd-dev-card.hd-pos-1 .hd-dev-ribbon,
.hd-dev-card.hd-pos-2 .hd-dev-ribbon { opacity: 0; }

.hd-dev-card.hd-card-flyoff {
  transition: transform 0.65s cubic-bezier(0.55,0,1,0.45), opacity 0.65s ease;
  transform: translate(-160px,-70px) scale(0.9) rotate(-16deg) !important;
  opacity: 0 !important;
  z-index: 4 !important;
}

.hd-dev-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(20,80,222,0.08); margin-bottom: 16px; }
.hd-dev-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hd-dev-info { min-width: 0; }
.hd-dev-name { font-weight: 700; font-size: 0.98rem; color: var(--hd-navy); }
.hd-dev-rate { font-size: 0.78rem; color: var(--hd-muted); margin-top: 2px; }
.hd-dev-stars { color: #f5a524; letter-spacing: 1px; font-size: 0.7rem; }
.hd-dev-avail {
  margin-left: auto;
  display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; color: #16a34a;
  background: rgba(22,163,74,0.08);
  border-radius: 20px; padding: 4px 10px;
  flex-shrink: 0;
}
.hd-dev-card.hd-pos-0 .hd-dev-avail { margin-right: 34px; }
.hd-avail-dot { width: 6px; height: 6px; background: #16a34a; border-radius: 50%; animation: hd-pulse 2s infinite; }
.hd-dev-bio { font-size: 0.84rem; color: var(--hd-muted); line-height: 1.6; margin-bottom: 16px; }
.hd-dev-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hd-skill-tag {
  background: rgba(20,80,222,0.07);
  border: 1px solid rgba(20,80,222,0.15);
  color: var(--hd-primary);
  font-size: 0.75rem; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  transition: background 0.2s;
}
.hd-skill-tag:hover { background: rgba(20,80,222,0.13); }
.hd-dev-foot {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(20,80,222,0.08);
  padding-top: 14px;
  font-size: 0.78rem; color: var(--hd-muted);
}
.hd-dev-foot div { display: flex; flex-direction: column; gap: 2px; }
.hd-dev-foot strong { color: var(--hd-navy); font-size: 0.92rem; }

.hd-stack-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; width: 380px; }
.hd-stack-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(20,80,222,0.2);
  transition: background 0.3s, transform 0.3s;
}
.hd-stack-dot.active { background: var(--hd-primary); transform: scale(1.3); }

/* ===================== DEVELOPER TYPES ===================== */
.hd-types {
  background: #fff;
  padding: 80px 20px;
}
.hd-section-header { text-align: center; margin-bottom: 48px; }
.hd-eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; width: 100%; }
.hd-eyebrow-line { flex: 1; max-width: 120px; height: 1.5px; background: linear-gradient(90deg, transparent, rgba(20,80,222,0.25)); }
.hd-eyebrow-line:last-child { background: linear-gradient(270deg, transparent, rgba(20,80,222,0.25)); }
.hd-eyebrow-text {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hd-primary);
  background: rgba(20,80,222,0.06);
  border: 1px solid rgba(20,80,222,0.18);
  border-radius: 50px;
  padding: 5px 18px;
}
.hd-section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--hd-navy); line-height: 1.15;
  margin: 0 0 16px;
}
.hd-title-em {
  font-style: normal;
  background: linear-gradient(135deg, var(--hd-primary) 0%, var(--hd-navy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hd-section-sub { font-size: 1rem; color: var(--hd-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.hd-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  max-width: 1290px;
  margin: 0 auto;
}
.hd-type-card {
  background: var(--hd-bg);
  border: 1px solid rgba(20,80,222,0.10);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}
.hd-type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(20,80,222,0.13);
  border-color: rgba(20,80,222,0.25);
}
.hd-type-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(20,80,222,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--hd-primary);
  margin-bottom: 16px;
  transition: background 0.25s;
}
.hd-type-card:hover .hd-type-icon { background: var(--hd-primary); color: #fff; }
.hd-type-title { font-size: 1.05rem; font-weight: 700; color: var(--hd-navy); margin-bottom: 8px; }
.hd-type-desc { font-size: 0.85rem; color: var(--hd-muted); line-height: 1.65; margin-bottom: 14px; }
.hd-type-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-type-tag {
  font-size: 0.7rem; font-weight: 600;
  color: var(--hd-primary);
  background: rgba(20,80,222,0.06);
  padding: 3px 9px; border-radius: 12px;
}

/* ===================== WHY HIRE ===================== */
.hd-why {
  background: var(--hd-bg);
  padding: 80px 20px;
}
.hd-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1290px;
  margin: 0 auto;
}
.hd-why-card {
  background: #fff;
  border: 1px solid rgba(20,80,222,0.10);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hd-why-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(20,80,222,0.10); }
.hd-why-num {
  font-size: 2.2rem; font-weight: 900;
  background: var(--hd-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 12px;
}
.hd-why-title { font-size: 1.02rem; font-weight: 700; color: var(--hd-navy); margin-bottom: 8px; }
.hd-why-desc { font-size: 0.85rem; color: var(--hd-muted); line-height: 1.65; }

/* ===================== FORM + CALENDLY ===================== */
.hd-contact {
  background: #fff;
  padding: 80px 20px;
}
.hd-contact-wrap {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 1290px;
  margin: 0 auto;
}
.hd-form-col { flex: 1 1 0; min-width: 0; }
.hd-cal-col { flex: 0 0 480px; max-width: 480px; }

.hd-form-box {
  background: #fff;
  border: 1px solid rgba(20,80,222,0.12);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 28px rgba(20,80,222,0.08);
}
.hd-form-title { font-size: 1.6rem; font-weight: 800; color: var(--hd-navy); margin: 0 0 8px; }
.hd-form-sub { font-size: 0.92rem; color: var(--hd-muted); line-height: 1.6; margin: 0 0 28px; }

.hd-form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.hd-field {
  flex: 1;
  display: flex; align-items: center;
  background: #f1f5f9;
  border: 1.5px solid rgba(20,80,222,0.10);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.22s, background 0.22s;
  min-width: 0;
}
.hd-field:focus-within { border-color: var(--hd-primary); background: #f8f9ff; }
.hd-field-icon {
  display: flex; align-items: center;
  padding: 0 10px 0 14px;
  color: var(--hd-faint);
  flex-shrink: 0;
}
.hd-field input,
.hd-field select,
.hd-field textarea {
  flex: 1; border: none; background: transparent; outline: none;
  padding: 13px 14px 13px 0;
  font-size: 0.9rem; color: var(--hd-navy);
  width: 100%; min-width: 0;
  font-family: inherit;
}
.hd-field input::placeholder,
.hd-field textarea::placeholder { color: var(--hd-faint); }
.hd-field select { appearance: none; -webkit-appearance: none; cursor: pointer; color: var(--hd-faint); }
.hd-field select.has-value { color: var(--hd-navy); }
.hd-select-wrap { position: relative; overflow: visible !important; }
.hd-select-arrow {
  display: flex; align-items: center;
  padding-right: 12px; color: var(--hd-faint);
  pointer-events: none; flex-shrink: 0;
}
.hd-phone-field { overflow: visible; padding: 0; border: none; background: transparent; }
.hd-phone-field .iti {
  width: 100%;
  border: 1.5px solid rgba(20,80,222,0.10);
  border-radius: 10px; overflow: visible;
  background: #f1f5f9;
  transition: border-color 0.22s;
}
.hd-phone-field .iti--allow-dropdown.iti--separate-dial-code .iti__selected-flag { background: transparent; border-right: 1px solid rgba(20,80,222,0.10); }
.hd-phone-field .iti input { background: transparent; border: none; outline: none; padding: 13px 14px; font-size: 0.9rem; color: var(--hd-navy); width: 100%; }
.hd-phone-field .iti input::placeholder { color: var(--hd-faint); }
.hd-phone-field:focus-within .iti { border-color: var(--hd-primary); background: #f8f9ff; }
.hd-textarea-wrap { align-items: flex-start; margin-bottom: 18px; }
.hd-textarea-wrap .hd-field-icon { padding-top: 14px; align-self: flex-start; }
.hd-textarea-wrap textarea { resize: vertical; min-height: 172px; }

.hd-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--hd-grad);
  color: #fff;
  font-size: 1rem; font-weight: 700;
  border: none; border-radius: 10px;
  padding: 15px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.22s, transform 0.22s;
  box-shadow: 0 4px 18px rgba(23,92,255,0.25);
  font-family: inherit;
}
.hd-submit-btn:hover { opacity: 0.9; transform: translateY(-2px); color: #fff; }
.hd-submit-btn:disabled { opacity: 0.75; transform: none; cursor: not-allowed; }
.hd-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%;
  animation: hd-spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes hd-spin { to { transform: rotate(360deg); } }
.hd-trust {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 0.8rem; color: var(--hd-faint); margin-top: 14px;
}

/* Calendly column */
.hd-cal-box {
  background: var(--hd-bg);
  border: 1px solid rgba(20,80,222,0.12);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 28px rgba(20,80,222,0.08);
}
.hd-cal-title { font-size: 1.25rem; font-weight: 800; color: var(--hd-navy); margin: 0 0 6px; }
.hd-cal-sub { font-size: 0.88rem; color: var(--hd-muted); line-height: 1.6; margin: 0 0 14px; }
.hd-cal-widget { border-radius: 12px; overflow: hidden; }

/* ===================== HOW IT WORKS ===================== */
.hd-how {
  background: var(--hd-bg);
  padding: 80px 20px;
}
.hd-how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1290px;
  margin: 0 auto;
  position: relative;
}
.hd-step {
  background: #fff;
  border: 1px solid rgba(20,80,222,0.10);
  border-radius: 16px;
  padding: 32px 26px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hd-step:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(20,80,222,0.11); }
.hd-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--hd-grad);
  color: #fff;
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(23,92,255,0.28);
}
.hd-step-title { font-size: 1.05rem; font-weight: 700; color: var(--hd-navy); margin-bottom: 8px; }
.hd-step-desc { font-size: 0.85rem; color: var(--hd-muted); line-height: 1.65; }
.hd-step-connector {
  position: absolute;
  top: 54px;
  right: -18px;
  color: rgba(20,80,222,0.2);
  z-index: 2;
  display: flex;
  align-items: center;
}
.hd-step:last-child .hd-step-connector { display: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .hd-cal-col { flex: 0 0 400px; max-width: 400px; }
}
@media (max-width: 1024px) {
  .hd-hero-wrap { flex-direction: column; text-align: center; }
  .hd-hero-left { flex: 1 1 100%; display: flex; flex-direction: column; align-items: center; }
  .hd-hero-sub { margin-left: auto; margin-right: auto; }
  .hd-hero-btns { justify-content: center; }
  .hd-hero-right { flex: 1 1 100%; width: 100%; align-items: center; }
  .hd-card-stack { width: 100%; max-width: 420px; }
  .hd-stack-dots { width: 100%; max-width: 420px; }
}
@media (max-width: 900px) {
  .hd-contact-wrap { flex-direction: column; }
  .hd-form-col, .hd-cal-col { max-width: 100%; flex: unset; width: 100%; }
}
@media (max-width: 600px) {
  .hd-hero-h1 { font-size: 1.9rem; }
  .hd-form-row { flex-direction: column; }
  .hd-form-box { padding: 24px 18px; }
  .hd-step-connector { display: none; }
  .hd-hero-btns { flex-direction: column; align-items: center; }
  .hd-card-stack { height: 400px; }
  .hd-dev-ribbon { right: -14px; padding: 4px 26px; }
}
@media (max-width: 485px) {
  .hd-cal-box { padding: 18px 14px; }
}
