/* ----------------------------------------------------------
   ROOT VARIABLES
------------------------------------------------------------- */
:root {
  --bg-dark: #020617;
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --accent: #38bdf8;
  --text-main: #0f172a;
  --muted: #6b7280;
  --card-bg: #ffffff;
}

/* ----------------------------------------------------------
   GLOBAL
------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

/* ----------------------------------------------------------
   TYPOGRAPHY IMPROVEMENTS
------------------------------------------------------------- */

body {
  font-family: "Inter", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #020617;
}

p {
  font-weight: 400;
  color: #334155;
}

/* ----------------------------------------------------------
   HORIZONTAL ICON CARD (REFERENCE STYLE)
------------------------------------------------------------- */

.horizontal-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 22px 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Header: icon left, title right */
.horizontal-card .card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

/* Icon */
.horizontal-card .card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Title */
.horizontal-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #020617;
  margin: 0;
  line-height: 1.4;
}

/* Body text */
.horizontal-card .card-body {
  padding: 0;
}

.horizontal-card .card-body p {
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: #475569;
  text-align: left;
}

.text-accent {
  color: var(--accent);
}

/* ----------------------------------------------------------
   NAVBAR — AUTO LIGHT / DARK (CLEAN & SAFE)
------------------------------------------------------------- */

.navbar-main {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

/* ===== DARK (over hero) ===== */
.navbar-main.is-dark {
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.navbar-main.is-dark .brand-name {
  color: #ffffff;
}

.navbar-main.is-dark .brand-tagline {
  color: #cbd5f5;
}

.navbar-main.is-dark .nav-link {
  color: #e5e7eb;
}

.navbar-main.is-dark .nav-link:hover {
  color: #38bdf8;
}

/* ===== LIGHT (after hero) ===== */
.navbar-main.is-light {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.10);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.navbar-main.is-light .brand-name {
  color: #0f172a;
}

.navbar-main.is-light .brand-tagline {
  color: #475569;
}

.navbar-main.is-light .nav-link {
  color: #0f172a;
}

.navbar-main.is-light .nav-link:hover {
  color: #2563eb;
}

/* Logo */
.logo-mark {
  height: 40px;
  width: 40px;
  border-radius: 999px;
}

.brand-text .brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-text .brand-tagline {
  font-size: 0.72rem;
}

/* Buttons */
.navbar-main .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.navbar-main .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ----------------------------------------------------------
   HERO SECTION — LAYERED SYSTEM
------------------------------------------------------------- */

.hero-section {
  position: relative;
  min-height: 92vh;
  padding-top: 110px; /* avoids header overlap */
  padding-bottom: 80px;
  overflow: hidden;
  color: white;
}

/* VANTA (z-index 0) */
#vanta-bg {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
}

/* Overlay glow */
.layer-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(56, 189, 248, 0.18),
    transparent 70%
  );
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

/* Tech lines */
.layer-lines {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/hero-lines.svg');
  background-size: 220% 220%;
  opacity: 0.22;
  z-index: 2;
  animation: moveLines 26s linear infinite;
}

@keyframes moveLines {
  0% { background-position: 0 0; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0 0; }
}

/* Particles */
.layer-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Floating dots */
.layer-dots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.layer-dots span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  filter: blur(3px);
  opacity: 0;
  animation: dotPulse 4.5s ease-in-out infinite alternate;
}

@keyframes dotPulse {
  0% { opacity: 0.1; transform: scale(0.6); }
  50% { opacity: 0.55; transform: scale(1.25); }
  100% { opacity: 0.08; transform: scale(0.7); }
}

/* Floating code */
.layer-code {
  position: absolute;
  top: 25%;
  left: 0;
  font-size: 15px;
  opacity: 0.14;
  z-index: 5;
  color: #38bdf8;
  font-family: monospace;
  white-space: pre;
  animation: floatCode 22s linear infinite;
}

@keyframes floatCode {
  0% { transform: translateY(20px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(20px); }
}


/* Content */
.content-layer {
  position: relative;
  z-index: 10;
}

/* Hero text */
.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  max-width: 660px;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0,0,0,0.55);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e5e7eb;
  max-width: 620px;
  text-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.hero-eyebrow {
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ----------------------------------------------------------
   HERO PANEL
------------------------------------------------------------- */

.hero-panel {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 18px;
  padding: 24px 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e5e7eb;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero-panel-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 12px;
}

.hero-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

/* ----------------------------------------------------------
   SECTIONS
------------------------------------------------------------- */

/* ABOUT SECTION */
.about-section {
  background: #ffffff;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}

.about-lead {
  font-size: 1.05rem;
  color: #334155;
  max-width: 720px;
}

/* Cards */
.about-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 26px 24px;
  height: 100%;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

/* ----------------------------------------------------------
   ABOUT CARDS — TYPOGRAPHY POLISH
------------------------------------------------------------- */

.about-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #020617;
}

.about-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  text-align: justify;
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ABOUT CARD HEADER (icon + title) */
.about-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.about-title {
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(37, 99, 235, 0.2);
  margin: 0;
}

/* Optional: refine paragraph */
.about-card p {
  text-align: justify;
  margin-bottom: 0;
}



/* Highlight Strip */
.about-highlight {
  background: #f1f5f9;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 12px;
  font-size: 1rem;
  color: #0f172a;
}


.section-padding { padding: 80px 0; }

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
}


/* ----------------------------------------------------------
   CARDS
------------------------------------------------------------- */

.info-card,
.service-card,
.contact-card {
  background: var(--card-bg);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* ----------------------------------------------------------
   SERVICE CARD HEADER (REFERENCE STYLE)
------------------------------------------------------------- */
/* ================================
   SERVICES SECTION – FINAL STYLES
   ================================ */

/* Card container */
.service-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 2.2rem 2.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: all 0.35s ease;
  height: 100%;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.12);
}

/* Header row (icon + title) */
.service-header,
.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Service icon */
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.22),
    rgba(56, 189, 248, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-icon i {
  font-size: 1.1rem;
  color: #38bdf8;
}

/* Service title */
.service-title,
.service-card h4,
.service-card h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #020617;
  margin: 0;
  line-height: 1.4;
}

/* Outcome / summary text */
.service-summary,
.service-outcome {
  font-size: 0.95rem;
  color: #334155;
  margin-top: 0.9rem;
  margin-bottom: 0.9rem;
  line-height: 1.65;
  text-align: left; /* intentional: better readability than justify */
}

/* Paragraphs and bullets inside card */
.service-card p,
.service-card li {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

/* Bullet list */
.service-bullets,
.service-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
}

.service-bullets li,
.service-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Bullet marker */
.service-bullets li::before,
.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #38bdf8;
  font-weight: 700;
}

/* Subtle card accent line (optional but recommended) */
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0.7),
    rgba(56, 189, 248, 0.15)
  );
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
}


/* ================================
   ENGAGEMENT – FINAL TUNING
================================ */

/* Section text sizing */
#engagement .section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
}

#engagement .section-subtitle {
  font-size: 0.98rem;
  color: #475569;
  max-width: 620px;
}

/* Principles card */
.engagement-principles {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.engagement-list li {
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #475569;
}

.engagement-list strong {
  color: #0f172a;
}

/* Engagement flow */
.engagement-flow {
  position: relative;
  padding-left: 22px;
}

/* Vertical line (initial state) */
.engagement-flow::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 6px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(
    to bottom,
    #2563eb,
    rgba(37, 99, 235, 0.15)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Activated on scroll */
.engagement-flow.flow-active::before {
  opacity: 1;
  animation: flowPulse 3s ease-in-out infinite;
}

/* Subtle pulse animation */
@keyframes flowPulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Engagement cards */
.engagement-card {
  position: relative;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.engagement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.engagement-card h5 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.engagement-card p {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 0;
}

/* Step badge */
.engagement-step {
  position: absolute;
  top: 16px;
  left: -36px;
  background: #e0edff;
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 999px;
}
/* Engagement icons */
.engagement-icon {
  position: absolute;
  top: 18px;
  left: -58px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0edff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
}

/* Animate flow line */
.engagement-flow::before {
  background-size: 100% 200%;
  animation: flowPulse 3s ease-in-out infinite;
}

@keyframes flowPulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}
.engagement-flow::before {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.engagement-flow.flow-active::before {
  opacity: 1;
}

/* Engagement CTA – hero-inspired */
.engagement-cta {
  position: relative;
  background: linear-gradient(
    135deg,
    #020617,
    #0f172a 45%,
    #020617
  );
  color: #e5e7eb;
  padding: 44px 36px;
  border-radius: 22px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.6);
}

/* subtle tech overlay */
.engagement-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(56,189,248,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(37,99,235,0.18), transparent 45%);
  pointer-events: none;
}

/* CTA text */
.engagement-cta h4 {
  position: relative;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #f8fafc;
}

.engagement-cta p {
  position: relative;
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto 22px;
  color: #cbd5f5;
}

/* CTA button */
.engagement-cta .btn {
  position: relative;
  padding: 12px 28px;
  font-size: 0.95rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border: none;
  box-shadow: 0 12px 32px rgba(56,189,248,0.45);
}

.engagement-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(56,189,248,0.6);
}

/* ================================
   CONTACT SECTION
================================ */

.bg-soft {
  background: #f8fafc;
}

/* Info card */
.contact-info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.contact-info-card h5 {
  font-weight: 600;
  color: #0f172a;
}

.contact-text {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 22px;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #0f172a;
}

.contact-details i {
  color: var(--accent);
  font-size: 1rem;
}

.contact-note {
  font-size: 0.85rem;
  color: #64748b;
}

/* Form card */
.contact-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.contact-form-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

.contact-form-card .form-control {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.contact-form-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
}


/* ================================
   WHY HBTECH – FINAL CLEAN VERSION
   ================================ */

#why-us {
  background:
    radial-gradient(
      900px 350px at 15% 0%,
      rgba(56, 189, 248, 0.14),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      #f3f8ff 0%,
      #ffffff 70%
    );
}

/* Subtitle */
#why-us .section-subtitle {
  max-width: 560px;
  margin-bottom: 1.5rem;
  color: #475569;
}

/* Cards grid */
.why-cards {
  margin-top: 1.5rem;
}

/* Card */
.why-card-pro {
  background-color: #ffffff;
  border-radius: 22px;
  padding: 2.4rem 2.4rem; /* slightly reduced */
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.why-card-pro:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* Left accent bar */
.why-card-pro::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background-color: #38bdf8;
  transition: height 0.35s ease;
}

.why-card-pro:hover::before {
  height: 100%;
}

/* -----------------------------------------------------
   ICON – REDUCED & TIGHTER
   ----------------------------------------------------- */
.why-icon-pro {
  width: 48px;              /* reduced */
  height: 48px;             /* reduced */
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.25),
    rgba(56, 189, 248, 0.10)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;    /* tighter spacing */
  transition: transform 0.3s ease;
}

.why-card-pro:hover .why-icon-pro {
  transform: scale(1.06);
}

.why-icon-pro i {
  font-size: 1.15rem;       /* smaller icon */
  color: #38bdf8;
}

/* -----------------------------------------------------
   TITLE – CLOSER TO ICON
   ----------------------------------------------------- */
.why-card-pro h5 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

/* Underline */
.why-underline {
  display: block;
  width: 32px;
  height: 3px;
  background-color: #38bdf8;
  border-radius: 4px;
  margin-top: 4px;
}

/* -----------------------------------------------------
   TEXT – TIGHTER & CLEANER
   ----------------------------------------------------- */
.why-card-pro p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #475569;
  margin-top: 0.75rem;
}

/* ----------------------------------------------------------
   FOOTER
------------------------------------------------------------- */

.footer {
  background: #020617;
  color: #9ca3af;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  margin-left: 14px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #e5e7eb;
}

/* ----------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */

@media (max-width: 1200px) {
  .hero-section { text-align: center; }
  .hero-panel { margin-top: 24px; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2rem; }
}
